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

  Devise sequence to display total size of all ordinary files

Devise a sequence to display the total size of all ordinary files in the current directory. Calculate from empn.lst the average pay and store it in a variable.

  Write a program that consists of three classes- a b and c

Write a program that consists of three classes, A, B, and C, such that B extends A and C extends B. Each class should define an instance variable named x.

  Create a script called project1.sh

CIS440 PROJECT - Create a script called project1.sh that adds "universe" and "multiverse" at the end the 2nd and 3rd lines of the /etc/apt/sources.list

  Show a method to display instructions to the user and write

one of the many tasks that programmers get asked to do is to convert data from one form to another. frequently data is

  Who is protected by hippa and who must comply with hippa

Who is protected by HIPPA? Who must comply with HIPPA? What is the relevance of health care plans, providers and clearinghouses?

  Design a turing machine which accepts the language

Design a Turing machine which accepts the language {uu^R | u ? {a, b}*} , where u^R is u in reverse order. Include an explanation, a diagram and a table.

  Utilization of cryptography

You have been hired to offer the advice regarding the utilization of the cryptography to developer of new two products within a company.

  Create a jframe that holds fjive buttons with the names

Create a JFrame that holds fjive buttons with the names of five different fonts. Include a sexth button that the user can click to make a font larger or smaller

  In a separate word document reflect on the writing process

you work at top line manufacturing and your boss has asked you to confirm a commitment made by a motivational speaker

  What is the purpose of using asymptotic notation such as o

What is the purpose of using asymptotic notation such as O, Omega and Theta instead of using the exact number of comparisons done by a sorting algorithm?

  Develop a simulation model and run the model

Develop a simulation model and run the model for 20,000 minutes and collect statistics for each dock, including utilization.

  How will the website be tested

Quality Assurance: What approaches will be used to ensure that the site functions as expected at launch and in the future?

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