Question: Part 1 A program is supposed to compute the commission for a salesperson's sales given the number of items sold and the total sales amount

 Part 1 A program is supposed to compute the commission for

Part 1 A program is supposed to compute the commission for a salesperson's sales given the number of items sold and the total sales amount according to the following rules: If the sales amount is less than $5000, the salesperson receives a 5% commission. If the sales amount is at least $5000, the salesperson receives a 7.5% commission If the number of items sold was at least 5 and the amount of the sale minus the commission is at least $20000, the salesperson receives bonus of $500. All sales amounts are in whole dollars, though commissions are not. The program is to print the total commission. If there was a bonus received, it also prints information about the bonus. Create test data for this program. One example has been done for you. You need to create three more. Pay special attention to edge cases. You will be using this data in lab. Inputs Expected Results Number Total Base Total Sale - Bonus? Total of Items Sales Commission Commission Commission Sold Amount 1 10 2000 100 1900 False 100 2 3 4

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!