Question: ( Science: calculating thermal energy ) Write a C + + program that calculates the energy needed to heat water from an initial temperature to
Science: calculating thermal energy Write a C program that calculates the energy
needed to heat water from an initial temperature to a final temperature. The program
should prompt the user to enter the mass of water in kg and the initial and final
temperatures in degrees Celsius. The formula to calculate the energy in Joules is:
Q M finalTemperature initialTemperature
where M is the mass of water and Q is the energy.
Here is a sample run:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
