Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Online Systems For Physicians And Medical Professionals How To Use And Access Databases

Authors: Harley Bjelland

1st Edition

1878487442, 9781878487445

More Books

Students also viewed these Databases questions