Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

IN JAVA LANGUAGE PLEASE: Write a Java program that reads temperature data from t

ID: 3665079 • Letter: I

Question

IN JAVA LANGUAGE PLEASE:

Write a Java program that reads temperature data from the user and displays statistical data about those temperatures. The program will begin by asking the user to enter the name of the location of the readings. (Note: the location may contain spaces and commas.) Create an array of ten doubles. Read in temperature values from the user and store them in the array until -999 is entered or ten values have been entered. Use appropriate prompts to request user input. When done reading temperatures, print a report in the exact format shown below. While printing, use the following methods to determine Celsius, high, low, and average temperatures.

Explanation / Answer

//conversion to fahrenheit and Celsius

import java.util.scanner;

import java.util.*;

class Fahrenheit toCelsius

{

public static void main(Strings args[])

String location;

   int low, high;

   double avg;

temp = new double[10];

   for(i=1;i<10;i++)

   System.out.println(" Enter location of the temperature :);

//use Scanner class to get input from the user

}