1. Write a Java application that inputs three integers from the user and displays the sum, average, product, smallest, and largest of the numbers. Use a Scanner object to get the input from the user. Use System.out to output the results. The average should be a floating point result, and should be displayed with two digits after the decimal point.
2. Student will modify the Java application from program 1. The new version of the program will use JOptionPanes for input and output. Use String.format(“%.2f”, doubleVariable) to create a string representation with two digits following the decimal point.
I am using eclipse software browser is IE8, and I think compiler is JAVA based through eclipse. I will be away from terminal for several hours, but if you need any questions answered, then let me know. As you know, I will ONLY work with you. The time for this is 4 days, and is relatively simple, just have a heavy case load with statistics, and calcIII this semester.
As you always do, show how you do the work, so I can learn from it.
Yes, I have another project if you can help it is as follows and is 3-4 days out.
I was not able to see output from code....but not expert in Java....transitioning from VS to Java.
Write a Java application to calculate the circumference and the area of a circle. Your application must have two classes. The Circle class will have two methods: the circumference method and the area method. Each method will take a double input parameter as the value of the radius, perform its calculation, and return a double result.
The CircleTest class will have a main method that uses a JOptionPane to get the value of the radius from the user. The main method will create an object of the Circle class and test its methods. The main method will also use a JOptionPane for output. Use Math.PI and the Math.pow method in your calculations.
Limit your output to three digits after the decimal point by using the String.format method. Add exception handling to your program so that, if the user inputs something other than a string of digits, your program catches the exception and gives the user another chance to input the value of the radius.