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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!