Question: with a ve program te grote a umore delly average number of walng porn month of the ye. To do se, the propriate code for

with a ve program te grote a umore delly average number of walng porn month of the ye. To do se, the propriate code for each of the following steps: a) Arst the program should prompt the user to enter the month's number from 1 to 12) as an intent oppe Assameel inpart is valid b) Une switch onse to determine the number of days in the given month (Suppose that month 2 hm2 day months 1,3,5,7,8,10,12 have 31 days and the other months have 30 days) Use a counter-based loop for-loop or while loop) to ask the user to enter the number of steps willed in each of the days of the entered month. a calculate and display the daily average number of walked steps as follows: Dalby Amrage of walked steps Total steps walked in a glven month Number of days of a given month SAMPLE INPUT/OUTPUT Input the month:2 Input the num, of steps for each of the 28 days of month 2: 227 1232 119 12002 1222 sen -.. 222 Daily Average of Walked Steps = 4732.28322
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
