Need some help to write a program that uses a loop to


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

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Need some help to write a program that uses a loop to
Reference No:- TGS02708364

Now Priced at $10 (50% Discount)

Recommended (92%)

Rated (4.4/5)