The temperature of an object changes when it absorbs or loses thermal energy. It is possible to relate the amount of heat transferred, denoted by a variable q with units of joules, to the quantity of the substance m, by the following equation: ? = ????? where ?? is the specific heat of the substance in units of ?/(? ∙ ℃), ?? is the change in temperature in units of ℃, and m is the mass of the substance in grams. Write a script that calculates amount of heat transferred for any amount of aluminum. Aluminum has a specific heat ?? = 0.897 ?/(? ∙ ℃). The program should prompt the user to enter values for ???? and m, and should return the amount of heat transferred in units of joules. Test the program with values of 20 ℃ and 100 g.
The temperature of an object changes when it absorbs or loses thermal energy. It is possible to relate the amount of
equation: ? = ?????
where ?? is the specific heat of the substance in units of ?/(? ∙ ℃), ?? is the change in temperature in units of ℃, and m is the mass of the substance in grams. Write a script that calculates amount of heat transferred for any amount of aluminum. Aluminum has a specific heat ?? = 0.897 ?/(? ∙ ℃). The program should prompt the user to enter values for ???? and m, and should return the amount of heat transferred in units of joules. Test the program with values of 20 ℃ and 100 g.
Step by step
Solved in 3 steps