so i need to do this simple program for an assignment, can anyone help me here. weve only learned the simple stuff (loops, assigning variables, arrays, and if statements).
As the manager of the Acme Automobile Dealership, you have to determine the monthly bonus payment for your salespeople. The bonus formula is $50 per car sold plus 1% of total sales. In addition, an extra bonus of 1% is paid on the amount of sales in excess of the average sales per person. For example, if a salesperson sells 3 cars for a total of $53,000 and the average sales per person for the month is $40,000, then this sales person would get a bonus of 3*$50 + .01
Write a program that that allows input of the following data on each salesperson: name, cars sold, total amount of sales. You will need an array to hold each set of data — a total of three arrays. The program should keep asking for data until the user clicks cancel instead of ok in the prompt box. In order to calculate the average, you will need an accumulator variable to keep a running total inside the loop. Once all the data has been entered, the program should calculate the average by dividing the accumulator by the number of salespeople. The the program should print the name of each salesperson and his total bonus for the month.
any help would be greatly appreciated.
please IM me at youlovetonyt or email me at [email][email protected]