I already did this hw but i just realized that ken didnt give me the points for this one so im reuploading it.

Temperature code
Temperature result