Question: Write a program that stores the days of the week in a tuple. The program should use a loop to prompt the user to enter

Write a program that stores the days of the week in a tuple. The program should use a loop to prompt the user to enter the retail stores sales for a week. The data should be stored in a list and use list functions to:

calculate the total sales of the week

indicate the minimum and maximum sales amounts

use input validation to ensure that entered values are greater than or equal to 0. Make sure the currency is formatted appropriately(i.e. use two decimal places, as well as comma separation)

Sample Output

Enter the sales for Sunday: 560

Enter the sales for Monday: -670Input was invalid.

Re-enter the sales for Monday: 670Enter the sales for Tuesday: 1256

Enter the sales for Wednesday: 3010

Enter the sales for Thursday: 2050

Enter the sales for Friday: -947

Input was invalid.

Re-enter the sales for Friday: 947

Enter the sales for Saturday: 1589

The total sales is: $10,082.00

The minimum sale amount was: $560.00

The maximum sale amount was: $3,010.00

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!