Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedimage text in transcribedimage text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2014 Nancy France September 15 19 2014 Proceedings Part I Lnai 8724

Authors: Toon Calders ,Floriana Esposito ,Eyke Hullermeier ,Rosa Meo

2014th Edition

3662448475, 978-3662448472

More Books

Students also viewed these Databases questions

Question

How to prepare washing soda from common salt?

Answered: 1 week ago

Question

Explain strong and weak atoms with examples.

Answered: 1 week ago

Question

Explain the alkaline nature of aqueous solution of making soda.

Answered: 1 week ago