Question: Help with this C++ code please Write a program that computes the quarterly average sales for a salesperson in a department store. Every three months,

 Help with this C++ code please Write a program that computesHelp with this C++ code please

Write a program that computes the quarterly average sales for a salesperson in a department store. Every three months, the store calculates the quarterly average sales for each salesperson. Display the salesperson's name and the average. Allow the user to calculate as many salespeople as average as desired. Read the name of the salesperson from the user. Read the sales made by the salesperson from the user for each month during the quarter using a for loop. Display an error message if a negative sale's amount is entered and prompt for reentry until it is valid. Compute the average quarterly sales for that salesperson. Display the name of the salesperson and the computed quarterly average. Please enter the salesperson's name:? Mary Hill Please enter the sales from each month in the quarter. Month 1 Sales: $ 450.67 Month 2 Sales: $ 500.50 Month 3 Sales: $ 700.25 The quarterly average sales for Mary Hill is $550.47 Would you like to calculate the average for another salesperson? (Y or N) Please enter the salesperson's name: ? Joe Morgan Please enter the sales from each month in the quarter. Month 1 Sales: $ 560.00 Month 2 Sales: $ 650.00 Month 3 Sales: $ 825.50 The quarterly average sales for Joe Morgan is $678.50 Would you like to calculate the average for another salesperson? (Y or N)

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!