Assignment:
Create an application that will allow a manager to enter each salesperson’s daily items sold, calculate the total
sold and commission for each salesperson, display and print the summary for the day for each salesperson:
Functional Requirements:
The manager should be able to enter data for each salesperson to be reported (create a class for
salespersons):
Salesperson name
Salesperson commission rate
The manager should be able to enter all items sold for each salesperson (create a class for items):
Item name
Item price
Item quantity
Item tax rate
Once salesperson and item data has been collected, the manager should have the option to display or print the
daily summary
Display option will print daily summary data to the console
Print option will print daily summary data to a file
The daily summary should provide the following:
Salesperson name and commission rate and the following information for each salesperson:
Item name
Item price
Item quantity
Item tax (calculated using item tax rate, item price and item quantity)
Item total amount (calculated using item price, item quantity and item tax)
The total sold (calculated using all item total amounts for the salesperson)
The total commission earned by the salesperson (calculated using total sold and the salesperson’s commission
rate)