Question: Hi how to do this Assessment 2 Write a Java program to do the following: 1. In your main0, enter a set of 5 temperatures

Hi how to do this
 Hi how to do this Assessment 2 Write a Java program

Assessment 2 Write a Java program to do the following: 1. In your main0, enter a set of 5 temperatures (representing Celsius) into an array of float 2. Write a method called convert_temp0 that accepts 1 parameter (a float array) and returns a numbers. float number. This method is used to convert an array of Celsius temperatures (passed as a parameter) into their equivalent Fahrenheit temperatures using the formula: F ((Cx9)/5)+32 Note: The method must return the average of the Celsius temperatures 3. In the main), call the method convert_temp) and pass the array containing your Celsius 4. In the convert temp() method, display each temperature in Celsius and the corresponding 5. In the convert temp) method, calculate the average Celsius temperature from the array of 5 temperatures you entered (step 1) as a parameter. value in Fahrenheit beside it. temperatures passed as a parameter and return this average to the main). Display this average value in the main). 6. Write another method called in_Kelvin0 that accepts 1 parameter (a float number) and returns a float number. When this method is called, the parameter passed to this method is a single float Celsius temperature number. The method then calculates the equivalent temperature in Kelvin using the formula: "?"; C + 273 7. In the main), call the function in_Kelvin0 and pass the average Celsius temperature (step 5) to this method where it will calculate the equivalent temperature in Kelvin. The method must return the calculated Kelvin temperature back to the main). Display this average temperature in Kelvin

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!