Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 SalesAgent and two instances of SalesEmp 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started