Question: Write a Java Program(TempLoops.java) that calculates the Celsius equivalent to Fahrenheit Temperatures. Use Loops. The Fahrenheit temps should start at 0 and go up to

  1. Write a Java Program(TempLoops.java) that calculates the Celsius equivalent to Fahrenheit Temperatures. Use Loops. The Fahrenheit temps should start at 0 and go up to 300, incrementing 20 each time through the loop.(Formula is: Celsius = (Fahrenheit-32.0) * (5.0/9.0)). [dont worry about getting the number of digits behind the decimal point to always be 1 digit, if some have more than 1 and some have less, that is OK.]

Sample Output:

Fahrenheit Celsius

  1. -17.8
  1. -6.7
  1. 4.4

.

  1. 148.9

NOTE: Your program should print this table 3 times. Use a for loop to print the first table, a while loop to print the second table and a do/while loop to print the 3rd table.

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!