Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(2 marks) Question 1(a)-1(c) are based on the following situation Pure Co is a company that provide water purifier services. The company sells water purifier

image text in transcribed
image text in transcribed
(2 marks) Question 1(a)-1(c) are based on the following situation 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 staff id; protected String mykadId; protected int year Methods: abstract double calcSalary(); public Pure personnef 'string_name, string sid, string mykad, int yr) { //accessors //mutators public class : Agents Data members: private double basic Salary, private int soldwater PurifierA; private int sold water Purifiers; private int soldWaterPurifierc; Methods: /ormal constructor //accessors //processor //printer public class Servicepersonnel Data members: private int noof Items Serviced; private boolean complaint; Methods: /ormal constructor //accessor //processor /printer OOP (BCE) FEB, 2021 b) Show complete ServicePersonnel class definiton that inherits from the PurecoPersonnel class. For service personnel, the calculation of the salary is: Salary: 50 X no Ofitems Serviced Note: - If the service personnel number of years more than 3 years, extra 100 will be added to the salary - If customer made valid complaint on the service personnel, 2% of the salary will be deducted

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_2

Step: 3

blur-text-image_step3

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

Data Mining Concepts And Techniques

Authors: Jiawei Han, Micheline Kamber, Jian Pei

3rd Edition

ISBN: 0123814790, 9780123814791

More Books

Students also viewed these Databases questions

Question

Please get this right! I'll upvote super fast if you do ! !

Answered: 1 week ago

Question

How many Tables Will Base HCMSs typically have? Why?

Answered: 1 week ago

Question

What is the process of normalization?

Answered: 1 week ago