Students, please be sure to log in. This site does not use cookies and cannot store work submitted when not signed in.

Unit 1 Problems

temperature

Someone's trying to convert temperature from Celsius to Fahrenheit, however, their code does not work. Fix it for them.

Warning: int division problem. In java programming. Dividing two int values will result in an int result. If you want a decimal result, one of the operands must be a decimal number.

Anders Celsius originally proposed the Celsius temperature scale in 1742 with a reversed orientation compared to the modern Celsius scale

Temperature in degrees Fahrenheit (�F) = (Temperature in degrees Celsius (�C) * 9/5) + 32.

Hint: Make sure you use decimal numbers if you want answers to be in decimal.

Type your solution        
Skills Practiced:
4.A
4.B
Copyright © StudyCS 2024 All rights reserved.