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, 22.06.2019 15:30
In a compound condition, both conditions on either side of the logical operator and must be true for the overall condition to be true. a: true b: false
Answers: 1
question
Computers and Technology, 24.06.2019 03:40
4. does the kernel phenotype distribution support the idea that the cob is the result of a dihybrid cross? what information supports your answer? if a dihybrid cross (i.e. f1 to f2 of standard mendelian crosses) is not indicated what conditions might contribute to this finding.
Answers: 2
question
Computers and Technology, 24.06.2019 16:00
Which type of cloud computing offers easily accessible software and applications on the machines
Answers: 1
question
Computers and Technology, 24.06.2019 18:50
Which style did jack use on the vocabulary words in reports?
Answers: 2
You know the right answer?
Write a short program that uses static local variables to keep track of the running total and averag...
Questions
Questions on the website: 13722362