Question: ((((((((((((((((((((((((((((((((((((((((((((((((((((c++))))))))))))))))))))))))))))))))))))))))))))))))))))))) 10K Steps Write a C++ program using a flag-controlled loops to determine whether a person walked more during the daytime or nighttime. A person

((((((((((((((((((((((((((((((((((((((((((((((((((((c++)))))))))))))))))))))))))))))))))))))))))))))))))))))))

((((((((((((((((((((((((((((((((((((((((((((((((((((c++))))))))))))))))))))))))))))))))))))))))))))))))))))))) 10K Steps Write a C++ program using a flag-controlled loops to

10K Steps Write a C++ program using a flag-controlled loops to determine whether a person walked more during the daytime or nighttime. A person continues walking until he/she completes 10,000 steps. Ask the user to enter the number of steps walked and the walking time (D for daytime and N for nighttime): - If the user enters any character other than D or N, ask the user to enter the time again. - Keep track of the total steps completed in the daytime and the total number of steps completed in the nighttime. - Keep a counter of the number of walks as well. Continue asking for the time and number of steps till the user completes or exceeds 10,000 steps. After the goal is met, display the average steps completed per walk [Divide Total Steps by the Count of Walks]. Lastly, print whether the person completed more steps in the daytime or nighttime

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!