Question: Can someone help me with this Java code please /** * Write a description of class Calculation here. * Performing calculations. * @author (Qi Zhu)
Can someone help me with this Java code please

/** * Write a description of class Calculation here. * Performing calculations. * @author (Qi Zhu) * @version (a version number or a date) import java.util.Scanner; public class Calculation public static void main(String args[]) Scanner input = new Scanner(System.in); int numberl; // first number int number 2; // second number int number 3; // third number int largest; // largest value int smallest; //smallest value int sum; //sum of numbers int product; //product of numbers int average; // avarage of numbers /* Coding 1: write a series of statements to read in these numbers and assign them to * numberl, number2, number 3 /* Coding 2: write code here that compares all three integers sequentially with each number * and sets the largest and smallest accordingly */ largest - numberl; //assume numberl is the largest smallest - numberl; //assume numberl is the smallest Il perform calculations sum - numberl + number 2 + number 3; /* Coding 3: write statements to calculate the product and the average */ /* Coding 4: write statements that display the results */ System.out.printf(" For the numbers $d, $d and %d ", numberi, number2, number3); } // end main } // end class Calculation
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
