Answered step by step
Verified Expert Solution
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
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.javaStep 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