Question: Write a program that declares an array of doubles with the following numbers: {212.0, 98.6, 32.0, 61.0}. Write a Java program that converts each temperature
Write a program that declares an array of doubles with the following numbers: {212.0, 98.6, 32.0, 61.0}. Write a Java program that converts each temperature in the array from Fahrenheit to Celsius, and displays the result. Also, compute the average temperature in both Celsius, and Fahrenheit. Make use of Java methods. Even though you are using the above array as your test case, your code should still work if I substitute a different array into your code. That different array could possibly have 10 numbers, or 50 numbers, and your code should still work. Example output for an array of four numbers might be: Fahrenheit Celsius 212.000 100.000 98.600 37.000 32.000 0.000 61.000 16.111 Fahrenheit average is: 100.900 Celsius average is: 38.278
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
