Question 1: Write the complete Java program called Temperature that includes a for loop structure, prompting the user to enter 5 temperature values. The program should add up each temperature entered within the loop and store it in a variable called total. Using a system statement, output the total temperature value and the average temperature value. Use the sample output below as a guide:
"The total temperature = [total temperature value]"
"The average temperature = [average temperature value]"
Question 2: Create the Java program called Product that prompts the user to enter names of hardware devices. The program includes a sentinel loop with a value of "###" that stops the input from the user. Include a counter variable called inputnum inside the loop that counts the number of hardware devices the user entered. Using a system statement inside the loop, display the names of hardware devices the user entered. Include a dialog box outside the loop that displays the counter variable value (number of hardware device names entered by the user).
Question 3: Create a Java program called Guess that prompts the user to enter a number. The number entered is passed as a parameter to a void method called CheckNum(int num). Decision statements in the void method CheckNum check if the number entered is 100. If it is true, the following message "Number is correct!" is output to the screen using a System.out statement. If the number entered is not 100, then display "Number is incorrect". The main method() or main program Guess should include the call to the void method CheckNum.