Question: can you help me solve this question? Write a program that calculates the energy needed to heat water from an initial temperature to a final
can you help me solve this question?
Write a program that calculates the energy needed to heat water from an initial temperature to a final temperature. Your program should prompt the user to enter the amount of water in kilograms and the initial and final temperatures of the water. The formula to compute the energy is where M is the weight of water in kilograms, temperatures are in degrees Celsius, and energy Q is measured in joules. Some sample data: Input Output Water (kg) Initial temp (degrees C) Final temp (degrees C) Energy (J) 55.5 3.5 10.5 1625484.0 2.0 5.2 100.0 793286.4 100.3 103.6 200.7 40748519.9 Note:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
