Home /
Expert Answers /
Computer Science /
nbsp-based-on-the-table-below-calculate-the-sales-commission-earned-by-a-salesperson-if-the-s-pa216
(Solved):
Based on the table below, calculate the sales commission earned by a Salesperson. If the S ...
Based on the table below, calculate the sales commission earned by a Salesperson. If the Salesperson sold \( \$ 500 \) of desks, then the commission earned is \( \$ 30 \). If the Salesperson sold \( \$ 1,000 \) of chairs and \( \$ 400 \) of tables then the commission earned is \( \$ 60(\$ 50+\$ 10) \). Basic Code Requirements - your code should contain the following heading above the class name for each class. (not in the main method) Yo* Your Name Your Student Number Assignment 3 Date \( * / \) Page 1 of 2 - the program should end with your name and student number as the last line of the output - create a project called Conymission that calculates the commission earned by a Salesperson. The Main Class - prompts the user for a Salesperson's first name last name table sales desks sales - chair sales - If the user enters invalid data (such as negative chair sales) then a message should appear stating "Invalid: Enter valid chair sales:" - the program should not continue until the user enters valid data - make sure that the name is not an empty string - the program then should print out in the Salesperson's - full name on one line - table sales and table commission on one line - desk sales and desk commission on one line - chair sales and chair commission on one line - total sales and total commission on one line - the program should then prompt the user whether to process another Salesperson - the process should be repeated until the user decides not to continue - once the user has decided not to enter another salesperson data, a table should appear with: - total table sales and total table commissions - total desk sales and total desk commissions - total chair sales and total chair commissions - total sales and total commissions Note: You must use print to format your output.