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

  Derive the expression for variance of the continuous uniform

Derive the expression for variance of the continuous uniform probability distribution (we derived the expression for mean in class). Show your work.

  Design and implement a dynamic doubly linked list

Design and implement a dynamic doubly linked list - Allocate and de-allocate memory at runtime - Analyze a basic set of requirements for a problem

  Write a c program that displays a table showing the price

write a c program that displays a table showing the price of silver and gold. the table will have three columns. the

  Change the name of the function that displays your name

Change the double quotes that enclose the Hello, world! message to single quotes - Change the name of the function that displays your name

  Calculate tax pay and return the result

Calculate tax pay and return the result to main method. Print the result in main method.

  Takes a string containing a full name

Write a program that takes a string containing a full name and outputs each part of the name separately with its length. The name should be in the form of first, middle, and last name, separated from each other by a single space. For example, if the ..

  What value will be printed in the code

In the following code snippet, what value will be printed for c and d before the loop is executed

  Write the data to the pipe as a c-string

Write the data to the pipe as a C-string. Write the length of the entry to the pipe as a three-digit alpha field (i.e., no terminator).

  Program that computes and prints the 1000th prime number

You will need some variables to keep track of which prime number you're on and keep track of where you are in your loop.

  Determine how many consonants are in an entered string

Write a program that determines how many consonants are in an entered string of 50 characters or less. Output the entered string and the number of consonants in the string.

  Grade book program for his class

Your English instructor, realizing you are a programmer, asks you to write a Grade Book program for his class to help him compute final grades. Design a program that asks for the student's name and four test grades.

  Reduction polynomial on the computation

What is the influence of the choice of the reduction polynomial on the computation?

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