Computers and Technology

Write a short program that uses static local variables to keep track of the running total and average for a user's daily step count. Use only one function for the tracking, calculation, and output. Main() should use the appropriate loop that runs this program 7 times (there are 7 days in a week, obviously). Output: Enter the number of steps walked on Day 1: [user types: 6000] Day 1 summary: 6000 steps so far and 6000 average steps per day Enter the number of steps walked on Day 2: [user types: 10000] Day 2 summary: 16000 steps so far and 8000 average steps per day Enter the number of steps walked on Day 3: [user types: 5000] Day 3 summary: 21000 steps so far and 7000 average steps per day Enter the number of steps walked on Day 4: [user types: 11000] Day 4 summary: 32000 steps so far and 8000 average steps per day Enter the number of steps walked on Day 5: [user types: 3000] Day 5 summary: 35000 steps so far and 7000 average steps per day Enter the number of steps walked on Day 6: [user types: 10000] Day 6 summary: 45000 steps so far and 7500 average steps per day Enter the number of steps walked on Day 7: [user types: 9600] Day 7 summary: 54600 steps so far and 7800 average steps per day Notes and Hints: 1) Use only whole numbers for total steps and averages

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 00:00, puppylove899
Which is the correct sequence of steps to set up a document in landscape orientation? a. select page setup from the file menu. then click the margins tab and select landscape. b. select page setup from the edit menu. then click the margins tab and select landscape. c. select page setup from the insert menu. then click the margins tab and select landscape. d. select page setup from the format menu. then click the margins tab and select landscape
Answers: 1
image
Computers and Technology, 23.06.2019 21:10, jmolina57
Asample of 200 rom computer chips was selected on each of 30 consecutive days, and the number of nonconforming chips on each day was as follows: 8, 19, 27, 17, 38, 18, 4, 27, 9, 22, 30, 17, 14, 23, 15, 14, 12, 20, 13, 18, 14, 20, 9, 27, 30, 13, 10, 19, 12, 26. construct a p chart and examine it for any out-of-control points. (round your answers to four decimal places.)
Answers: 2
image
Computers and Technology, 23.06.2019 22:20, tagerryawilson6
If i uninstall nba 2k 19 from my ps4 will my career be gone forever?
Answers: 2
image
Computers and Technology, 24.06.2019 07:00, AnaiyaKirksey8
You are most likely to automatically encode information about
Answers: 1
Do you know the correct answer?
Write a short program that uses static local variables to keep track of the running total and averag...

Questions in other subjects: