Question: ( 5 points ) Type the below code into Eclipse and compile the class. Analyze the code and answer the questions below. import java.util. *
points Type the below code into Eclipse and compile the class. Analyze the code and answer the
questions below.
import java.util.;
public class TestAverage
public static void mainString args
int test test test sum;
Scanner reader new Scanner
System.in;
System.out.printlnEnter test ;
test reader.nextInt;
System.out.printlnEnter test ;
test reader.nextInt;
System.out.printlnEnter test ;
test reader.nextInt;
sum test test test;
System.out.printlnThe sum is sum;
System.out.printlnThe average is sum ;
A Briefly explain what this code does. points
B There is one logic error in this code. Explain what is wrong and fix it points
points Write a class called CelToFah where a user inputs a Celsius degree in double type from
the console, then converts it to Fahrenheit and displays the results. Formula for the conversion is:
fahrenheit celsius
Tips
For Java, is so you need to write in the program to obtain the correct result.
In order to take keyboard input from the console, use the Scanner class.
Sample Run
Problems
Celsius is Fahrenheit
Submission
Copy and paste your code.
Screen shot the console with user input of
Screen shot the console with user input of
Screen shot the console with user input of Apple error should occur
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
