Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write a C++ program that will help ESTIMATE how many miles the user has exercised. We will allow the user to calculate their distance by

write a C++ program that will help ESTIMATE how many miles the user has exercised. We will allow the user to calculate their distance by either giving us the number of minutes that they have walked or the number of steps they have taken. The program first should first ask the user for the following information: 1. Their height 2. Their average minute per mile pace (e.g., 15 or 20 minutes) 3. That type of information that they have gathered (number of minutes or number of steps). The user can only enter in one of these (not both types) 4. The data that has been collected: For time the user enters in how many minutes they walked, or For steps the user enters the number of steps their pedometer told them that they had walked Once you have this information, your program should calculate how many miles they have walked. Here is where it gets interesting. Let the user enter more than just one of their exercises - for example, they could enter their information for the entire week (or month), until they are done. For each entry, your program will still calculate the number of miles walked for that exercise. They will be using their same height and average minute per mile pace, so they shouldnt have to re-enter that information, just the number of minutes or the number of steps for each workout. Once the user has entered all of their information, your program will compute two additional pieces of information: The total number of miles that they have walked The average time spent exercising (to do this, think about what additional information you will need to keep track of!) Once you have performed the calculations, display them to the user.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced MySQL 8 Discover The Full Potential Of MySQL And Ensure High Performance Of Your Database

Authors: Eric Vanier ,Birju Shah ,Tejaswi Malepati

1st Edition

1788834445, 978-1788834445

More Books

Students also viewed these Databases questions