Title: Gross Pay For Salesperson
Purpose: Input the hourly rate, number of hours worked, number of sales and sales amounts for a salesperson and compute his/her gross pay.
Description: After displaying a brief description of the program, have the user input the salesperson's hourly rate, number of hours worked, and number of sales made. Then have the user enter the amount of each sale. The salesperson receives a commission of 5% of the total sales amounts, and double pay for any hours worked after the first 40 hours. Display the gross pay rounded to the nearest integer.
Sample Run
This program calculates the gross pay of a salesperson. Enter hourly rate: 8.90 Enter number of hours worked: 50 Enter number of sales: 3 Enter amount of sale 1: 90.50 Enter amount of sale 2: 605.78 Enter amount of sale 3: 100.99 Gross pay rounded to the nearest dollar is $574.