Question: Can please be done in C! ASSIGNMENT: Write a program to display the number of calories burned during a run. You bum 3.9 calories every
Can please be done in C!
ASSIGNMENT: Write a program to display the number of calories burned during a run. You bum 3.9 calories every minute that you run Display a table showing the number of calories burned in 10,15,20, 25 , and 30 minutes of running. To illustrate that this program could have been written using any of the loops discussed, first display the table using a while loop, then re-display the table using a do-whi le loop, and finally re-display the table again using a for loop. Create constants for 3.9 (the number of calories burned every minute), 10 (the starting minutes), 30 (the ending minutes), and 5 (the number of minutes that the loop increments by during each iteration), and use the constants in the basic information (at the top of the program's output) and in the loops. The columns are separated by tabs, and the numbers are indented by spaces. There is no input for this program. Example Run \#1 (bold type is what is entered by the user) You burn 3.9 calories every minute you run. This shows how many calories you burn if you ran for 10 to 30 minutes. The example run shows EXACTLY how your program output will look
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
