celsius to farenheit conversion program...
I have to write the following program for a homework problem for class.
Celsius.java – Write a program to display the Celsius to Fahrenheit conversions. Your output should be displayed in three sets of columns similar to the display below.
Celsius Farenheit
10 50
11 51.8
12 53.6
13 55.4
(etc....basically I need to show three columns 1st column displaying 1-19 degrees celsius and its farenheit, 2nd column displaying 20-29 degrees C and its F and 3rd column displaying 30-39 degrees C and its F)
so far in JGrasp I have entered this part of the program.
public class celsius{
public double convertCtoF(double degreesCelsius) {
return degreesCelsius / 5.0 * 9.0 + 32.0;
where I am getting hung up is what and how to enter into the program in order to display the result as stated above.
Any help would be greatly appreciated as I am at work trying to do this.
Thanks, Andrew