Estimate how many miles the user has exercise

Assignment Help Computer Engineering
Reference no: EM132196149

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 shouldn't 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.

Reference no: EM132196149

Questions Cloud

Write a program that performs keyboard input data : Implement a second version of the program, instead of an array to use the doubly linked list; add elements so as to preserve the ordering.
How can a strategic plan be firm yet flexible : How can a strategic plan be firm yet flexible? What does it need to include?
Revise the introduction and literature review : In this assignment, you will revise the introduction and literature review that you wrote for the Unit IV assignment. Revisions must be substantive.
What kind of performance standards hospitals : What kind of performance standards hospitals and fire stations need to guide its work force?
Estimate how many miles the user has exercise : Write a C++ program that will help ESTIMATE how many miles the user has exercised. We will allow the user to calculate their distance.
What is the monthly mortgage payment for the borrower : Consider a borrower that is approved for a standard 10-year, fully amortizing house mortgage with an original balance of $500,000 and a note rate
What are the three vertical integration of a business : What are the three vertical integration of a business and why is it vital to organizational success?
Why is it so important for critical thinkers : Class, provide an example of rhetoric that you have run across in the last week. Why is it so important for critical thinkers to be able to recognize rhetoric?
What are some of the lessons learned : Identify a company and discuss the key to their effective leadership and work motivation. What are some of the lessons learned?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Demonstrate given examples importance and significance

Understanding Response Time- Suggest two real-world examples of user and system response times that demonstrate their importance and significance.

  Provide subclasses serial and parallel

Provide subclasses Serial and Parallel, each of which contains an ArrayList. A Serial circuit models a series of circuits, each of which can be single resistor.

  Simple annual interest and the remainder

She borrowed the maximum amount she could at 3.5% simple annual interest and the remainder at 7% simple annual interest. At the end of the first year, she owed $259 in interest. How much was borrowed at each rate?

  Describe the key elements of the disaster recovery plan

Describe the key elements of the Disaster Recovery Plan to be used in case of a disaster and the plan for testing the DRP.

  Explain the impact of the encountered threat

Share an experience in which you or someone you know has encountered one of these threats. express the impact of the encountered threat and how it was resolved.

  Create classes for each of object type that need to be store

Create Classes for each of the object types that need to be stored, as indicated above. (See Note #3 in Programming Notes below.)

  How would you build a csirt

How would you build a CSIRT? What are the components to building an effective team? DQ requirement: We recommend your initial posting to be between 200-to-300.

  Explain contents of an initially empty avl tree

Explain contents of an initially empty AVL tree

  How various cells can be in a computer''s main memory

Suppose a machine has 20GB of storage space available on a hard disk and receives data over a telephone connection at the rate of 14,400 bps. At this rate, how long will it take to fill the available storage space.

  Write a php script that computes total cost of ordered bulbs

Write a PHP script that computes the total cost of the ordered light bulbs from below Exercise after adding 6.2 percent sales tax.

  Determine the design issues with the new system

A large, fast-food chain unveiled a new touch screen register for its franchises. Each cashier was assigned a user id and password combination to log.

  Questiona company is involved in initial software a new

questiona company is involved in initial software. a new director has made a unilateral decision to compel electronic

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd