Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
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

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

Beyond Big Data Using Social MDM To Drive Deep Customer Insight

Authors: Martin Oberhofer, Eberhard Hechler

1st Edition

0133509796, 9780133509793

More Books

Students also viewed these Databases questions

Question

=+1 How has the multinational enterprise evolved?

Answered: 1 week ago

Question

The paleolithic age human life, short write up ?

Answered: 1 week ago