Question: on WONTAL Answer ALL questions QUESTION 1: (25 marks) Question at-1/) are based on the following situation Pure Co is a company that provide water

on WONTAL Answer ALL questions QUESTION 1: (25 marks) Question at-1/) are based on the following situation Pure Co is a company that provide water purifier services. The company is water puri and provide services for the maintenance of the purifier. You are required to developiva 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 Pureco Personnel Data Members: protected string name protected String staff id; protected string mykadId; protected int year; Methods abstract double calc Salary(): public String toString(); public PurecoPersonnel String name, String sid, String mykad, int yr) ..) //accessors //mutators public class Agents Data members private double basic salary: private int soldater PurifierA; private int soldwaterPurifiers; private int soldater Purifier; Methods /ormal constructor //accessors //processor //printer public class Servicepersonnel Data members: private int noof Items Serviced; private boolean complaint; Methods: 1ormal constructor W/accessor Wprocessor //printer OOP (CE) FEB, 2021 c) Show an application program that uses the concept of polymorphism to 1) 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. 1) Determine number or personnel for 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
Get step-by-step solutions from verified subject matter experts
