Program that uses a loop to display the number of calories

Assignment Help C/C++ Programming
Reference no: EM131912884

Need some help to write a program that uses a loop to display the number of calories burned after running on a treadmill for 10, 15, 20, 25, and 30 minutes. Running on a treadmill burns 3.9 calories per minute.

Sample Output from Program:

39.0 calories were burned after 10 minutes.

58.5 calories were burned after 15 minutes.

78.0 calories were burned after 20 minutes.

97.5 calories were burned after 25 minutes.

117.0 calories were burned after 30 minutes.

Press any key to continue....

Using the pseudocode below, write the code that will meet the requirements.

Display program information

Declare variables

For i=10 to 30 step 5

Print i*calories

End for

Reference no: EM131912884

Questions Cloud

Displays the information about the movie : researching constructors and dimensions. Can someone assist with explaining how to code such an example
Prepare journal entries for april to record transactions : Materials purchases (on credit). Direct materials used production. Prepare journal entries for the month of April to record the above transactions.
What is the best estimate for the population mean : What is the best estimate for the population mean? The best estimate for a population mean for the dive scores in the Olympics is 900
What would happen to the break-even point : What would happen to the break-even point if the selling price was raised to $33? What is the significance of this analysis?
Program that uses a loop to display the number of calories : Need some help to write a program that uses a loop to display the number of calories burned after running on a treadmill for 10, 15, 20, 25, and 30 minutes.
What are the two projects net present values : What are the two projects' net present values, assuming the cost of capital is 5%? 10%? 15%?
Conduct an appropriate hypothesis test : Conduct an appropriate hypothesis test using (i) the p-value method and (ii) the rejection point method.
What is the optimum order size : Massa Machine Tool expects total sales of $14,000. Price per unit is $8. Firm estimates an ordering cost of $13.28 per order. What is the optimum order size?
What is the importance of putting functions in a program : What is the importance of putting functions in a program? How does structure play a role in the code that is being modifying? How will it play a role

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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