Question: public abstract class :PureCoPersonnel Data Members: protected String name; protected String staff id; protected String mykadId; protected int year; Methods: abstract double calcSalary(); public String

 public abstract class :PureCoPersonnel Data Members: protected String name; protected String

staff id; protected String mykadId; protected int year; Methods: abstract double calcSalary();

public abstract class :PureCoPersonnel Data Members: protected String name; protected String staff id; 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 a) Show complete Agents class definiton that inherits from the PurecoPersonnel class. For agent, the calculation of the salary is: Salary= basic salary+ commissions (depends on number of items sold and commission rate) Water Purifier Type B Price RM3900 RM4330 RM7400 Commission Rate 4% of the price for each item sold 5% of the price for each item sold 6% of the price for each item sold Note: If the agent's number of years more than 3 years, extra 200 will be added to the salary. (7 marks)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!