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

  Write a program to display the following output using a

Write a program to display the following output using a single cout statement. Write a program which accept two numbers and print their sum. Write a program which accept temperature in Fahrenheit and print it in centigrade.

  Invites user to enter a random string

Invites user to enter a random string of lower case letters 2)get the string on the same line as the invitation 3)checks correctness of input(if its only lowercase letters 4)computes number of letters that is not being used 5)program out puts the ans..

  Generate a random number each time the operator is used

The function call operator is overloaded and will generate a random number each time the operator is used and objects can be created with the lower and upper bound of the random number specified.

  A palindrome is a number

A palindrome is a number or text phrase that reads the same backward as forward. For example, each of the following five-digit integers is a palindrome: 12321, 55555, 34543 and 11611. Write a program that reads in a five-digit integer and determines ..

  Create a constructor in option

Create a constructor in Option that takes double K, double T, double sigma and double r as strike, time-to-maturity, stock volatility and risk-free rate parameters respectively

  Write c++ program that includes a suitable hashing function

Write a C++ program that includes a suitable hashing function and hash table to store this list of countries into your hash table

  Calculate the percentageand & add the percentage to a total

I need to declare 3 arrays. The first array will hold the employee ID. The second array will hold the amount of sales for that employee. Finally, the third array will hold the percentage of sales for each employee.

  C program that synchronizes a parent and a child process

Write a C program that synchronizes a parent and a child process in such a way that the output of the program will be:

  Define class and objects

Is there any way a single programmer (for example, a student working alone on a programming assignment) can benefit from some of the ideas behind the inspection process? Explain the difference between C++ struct and class

  End of the string and then print the results

Write a C++ code that declares a regular C++ null-terminated string that holds upto 20 characters, reads user input into the string, appends an exclamation to the end of the string and then print the results.

  Write a cpp program for magic number

Ask the user to enter a "magic number," which is an integer between 0 and 9, inclusive. Then, ask a user to enter 10 integers between 0 and 9, inclusive. If a user enters an integer outside of that range, therefore invalid, notify the user of the ..

  At what depth was the solution found

This program will need a simple menu for the user interface. At what depth was the solution found? How many nodes were expanded? How long did the search take?

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