Write a program in Java 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
Q = M * (final temperature – initial temperature) * 4148,
where M is the weight in kilograms, temperatures are in degrees Celsius, and energy
Q is measured in joules.
Answers
Answered by
0
Answer:
see the image :-
Explanation:
Attachments:
Similar questions