Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started