Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 CalculationStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started