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 04:31
Selling a product through an electronic medium is
Answers: 1
question
Computers and Technology, 23.06.2019 21:20
In microsoft word, when you highlight existing text you want to replace, you're in              a.  advanced mode.    b.  automatic mode.    c.  basic mode.    d.  typeover mode
Answers: 1
question
Computers and Technology, 24.06.2019 00:20
Describe a data structures that supports the stack push and pop operations and a third operation findmin, which returns the smallest element in the data structure, all in o(1) worst-case time.
Answers: 2
question
Computers and Technology, 24.06.2019 00:40
Use a software program or a graphing utility with matrix capabilities to solve the system of linear equations using an inverse matrix. x1 + 2x2 − x3 + 3x4 − x5 = 6 x1 − 3x2 + x3 + 2x4 − x5 = −6 2x1 + x2 + x3 − 3x4 + x5 = 3 x1 − x2 + 2x3 + x4 − x5 = −3 2x1 + x2 − x3 + 2x4 + x5 = 5
Answers: 3
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
Biology, 02.10.2020 14:01
question
Geography, 02.10.2020 14:01
question
Mathematics, 02.10.2020 14:01
question
Mathematics, 02.10.2020 14:01
Questions on the website: 13722367