Question: Problem #2: (Arrays) Modify your Fahr/Celsius program from Lab 44. This time, as you go through the loop, instead of printing the Fahrenheit and Celsius

 Problem #2: (Arrays) Modify your Fahr/Celsius program from Lab 44. This
time, as you go through the loop, instead of printing the Fahrenheit

Problem #2: (Arrays) Modify your Fahr/Celsius program from Lab 44. This time, as you go through the loop, instead of printing the Fahrenheit and Celsius data out, store the values in 2 arrays; one array for Fahrenheit and one array for Celsius. After the first loop that stores the data completes, write another loop that will print out the 2 arrays of data. 1.) Problem #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)). [don't 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 0 -17.8 20 -6.7 40 4.4 300 148.9

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!