Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

/** * 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 2 Lncs 13427

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124251, 978-3031124259

More Books

Students also viewed these Databases questions

Question

7. Identify six intercultural communication dialectics.

Answered: 1 week ago