Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java Class>> Sales People firstName: String a lastName: String oppsNumber: String sales: double commission: double type: String SalesPeople) Salespeople(String, String, String) setFirstName(String):void setLastName(String):void SetPPS(String) void

image text in transcribed

Java Class>> Sales People firstName: String a lastName: String oppsNumber: String sales: double commission: double type: String SalesPeople) Salespeople(String, String, String) setFirstName(String):void setLastName(String):void SetPPS(String) void getFirstName(): String getLastName() String getPPSC):String .toString():String > Commission SALES_EMP_COMMISSION: double SALES AGENT COMMISSION: double calculateCommission():void > Sales Agent SalesAgent) SalesAgent(String, String, String) calculateCommission() vold > SalesEmp Sales Empl) SalesEmp(String, String, String) calculateCommission():void The Green Bike Company has created a new scheme to reward employees for selling bicycles. Sales are only made by either, a sales emp on the shop floor or by a sales agent, both of whom are considered sales people. Commission on the sale of each bicycle is to be paid to sales emp at a rate of 15% and to the sales agents at a rate of 10%. You are required to: Write a Java application that implements the UML diagram above. You are also required to create a tester class to illustrate to workings of the application and identify the types of employees stored in the collection. The tester class will gather together two instances of Sales Agent and two instances of Sales Emp into one collection using an ArrayList and displays the employees name, their PPS number, the value of the sale and commission to be paid to each employee. The sale figure is to be inputted for each employee by the user and is used to calculate the commission

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

Database Design Application And Administration

Authors: Michael Mannino, Michael V. Mannino

2nd Edition

0072880678, 9780072880670

More Books

Students also viewed these Databases questions