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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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