subject

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

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 10:00
Whats three fourths of 15(this is supposed to be in math but i clicked too fast)
Answers: 1
question
Computers and Technology, 23.06.2019 11:30
In cell h5 enter a formula that will calculate the percentage of attendees that went to the altamonte springs job fair in 2018.
Answers: 1
question
Computers and Technology, 24.06.2019 20:30
⭐️⭐️⭐️ what network is larger in size? man or wan? you ⭐️⭐️⭐️
Answers: 2
question
Computers and Technology, 24.06.2019 21:00
When replacing a thermostat or water pump, coolant drained from the cooling system should be
Answers: 1
You know the right answer?
Write a short program that uses static local variables to keep track of the running total and averag...
Questions
question
Chemistry, 18.03.2021 02:00
question
Arts, 18.03.2021 02:00
question
Mathematics, 18.03.2021 02:00
question
French, 18.03.2021 02:00
question
Mathematics, 18.03.2021 02:00
question
Mathematics, 18.03.2021 02:00
question
Mathematics, 18.03.2021 02:00
question
English, 18.03.2021 02:00
question
Business, 18.03.2021 02:00