Starting out with Java: From control structures through objects
Chapter 5
Programming Challenges
6. Celsius Temperature Table
The formula for converting a temperature from Fahrenheit to Celsius is
C = 5/9(F - 32)
where F is the Fahrenheit temperature and C is the Celsius temperature. Write a method named celsius that accepts a Fahrenheit temperature as an argument. The method should return the temperature, converted to Celsius. Demonstrate the method by calling it in a loop that displays a table of the Fahrenheit temperatures 0 through 20 and their Celsius equivalents.
Gaddis, Tony (2015-05-29). Starting Out with Java: From Control Structures through Objects (Page 313). Pearson Education. Kindle Edition.
Learn Java - • Learn Java
Learn Python - • Learn Python
Programming challenges, Starting out with Java by Tony Gaddis - • Programming challenges...
Programming challenges, Starting out with Python by Tony Gaddis, • Programming challenges...
Thanks 😊
14 ноя 2016