Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Answers to just submission 3 question. Thank you Description of the Problem: Write an application that inputs three integers from the user and displays the

image text in transcribed

Answers to just submission 3 question. Thank you

Description of the Problem: Write an application that inputs three integers from the user and displays the sum. average, product, smallest and largest of the numbers. (Note: The calculation of the average in this lab should result in an integer representation of the average. So if the sum of the values is 7, the average should be 2, not 2.33333...) Submission 1: What if the inputs are 432, 333, 198, take the screen shots of your output, just like in Fig 5 in lab1.docx and submit it. Submission 2: What if the inputs are 137, 345, 258, take the screen shots of your output, just like in Fig 7 in lab1.docx and submit it. Submission 3: Post-lab question: Why we put the number 1 as the initial value of largest, smallest, how about we change it to O? That is largest = 0; //assume number is the largest smallest = 0; //assume number is the smallest if (largest number 1) largest = number1; the same for number2, number 3 if (smallest > number1) smallest = number1; the same for number 2, numbers. Will the results still be correct, if not give one example to show the result being wrong. Submission 4:The java source code Calculation.java

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

Advances In Databases And Information Systems 25th European Conference Adbis 2021 Tartu Estonia August 24 26 2021 Proceedings Lncs 12843

Authors: Ladjel Bellatreche ,Marlon Dumas ,Panagiotis Karras ,Raimundas Matulevicius

1st Edition

3030824713, 978-3030824716

More Books

Students also viewed these Databases questions

Question

Discuss the purpose of Armstrongs axioms.

Answered: 1 week ago