Question: Design a modular program that asks a user to enter a store's sales for each day of the month for one year. The amount should

 Design a modular program that asks a user to enter a

Design a modular program that asks a user to enter a store's sales for each day of the month for one year. The amount should be stored in a list/array. Calculate the total and average sales for the month and the year and then display the results. For each month, find the day (the day number in the month) at which the highest sale was achieved and the sale of that day. (Bonus: provide two versions of the loop using For and While loop- you do not have to re-write the entire program for the second version). Example of the output: month day sale($) 1 14 5000 2 21 5500 3 05 4950 Design a modular program that asks a user to enter a store's sales for each day of the month for one year. The amount should be stored in a list/array. Calculate the total and average sales for the month and the year and then display the results. For each month, find the day (the day number in the month) at which the highest sale was achieved and the sale of that day. (Bonus: provide two versions of the loop using For and While loop- you do not have to re-write the entire program for the second version). Example of the output: month day sale($) 1 14 5000 2 21 5500 3 05 4950

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!