Question
Create a new JAVA class called TempConverterTable for this question. In this program, you will print temperature conversion from Celsius to Fahrenheit for temperate from
Create a new JAVA class called TempConverterTable for this question.
In this program, you will print temperature conversion from Celsius to Fahrenheit for temperate from 0 to 40 degrees in Celsius.
You need to write a method called convert that takes an integer for Celsius and returns an integer as Fahrenheit. As in activity 1, you need to do the floating-point division instead of integer division in the calculation. In addition, you need to do the rounding after the calculation (using Math.rount() method).
In the main method, you need to use a loop to print the conversion with two columns, Celsius and Fahrenheit, separated by a TAB. It will start from 0 and end with 40 degrees in Celsius.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started