Answered step by step
Verified Expert Solution
Question
1 Approved Answer
KINDLY COPY-PASTE THE CODE Pure Co. is a company that provide water purifier services. The company sells water purifier and provide services for the maintenance
KINDLY COPY-PASTE THE CODE
Pure Co. is a company that provide water purifier services. The company sells water purifier and provide services for the maintenance of the purifier. You are required to develop a Java application to process the basic information and salary of the employees. Consider the following classes and inheritance hierarchy: PureCoPersonnel Agents Service Personnel public abstract class :PureCoPersonnel Data Members: protected String name; protected String staffid; protected String mykadId; protected int year; Methods: abstract double calcSalary(); public String toString(); public PureCoPersonnel String _name, String sid, String mykad, int yr) { //accessors //mutators public class :Agents Data members: private double basicSalary, private int soldWaterPurifierA; private int soldWaterPurifierB; private int soldWaterPurifierc; Methods: 1ormal constructor //accessors 1/processor //printer public class :ServicePersonnel Data members: private int noof ItemsServiced; private boolean complaint; Methods: 1ormal constructor // accessor //processor 1/printer OOP (BCE) c) Show an application program that uses the concept of polymorphism to i) Store data on the personnel. The number of data to be stored and information of each personnel are given by the user. ii) Display the information of each personnel. ii) Determine numberor personnelfor both agents and service personnel. iv) Display the name and staff Id for service personnel that received complaint. (13 marks)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started