Write a program to calculate the energy needed to heat a pot roast from an initial temperature to 160 degrees Fahrenheit. Your program should ask the user for both the weight of the pot roast and its...



Write a program to calculate the energy needed to heat a pot roast from an initial temperature to 160 degrees Fahrenheit. Your program should ask the user for both the weight of the pot roast and its initial temperature in degrees Fahrenheit. To compute the required energy, Q, use the following formula:


Q = W x (Tfinal
– Tstart) x 4184, where


W is the weight of the roast in kilograms, Tfinal
and Tstart
are temperatures measured in Celsius, and Q is measured in joules.


Since the formula assumes that temperatures are measured in Celsius and the user supplies them in Fahrenheit, your program must make the conversion described.



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here