Question: Objective: To write your first Java program and learn how to compile and run it both through Blue IDE and under MS-DOS. You need to

 Objective: To write your first Java program and learn how to

Objective: To write your first Java program and learn how to compile and run it both through Blue IDE and under MS-DOS. You need to first write the program, compile, and run it under the Blue Interpreted Development Environment, finally compile and run the same program under the MS-DOS command prompt. 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 labi.docx and submit it. Submission 2: What i the inputs are 137, 345, 258, take the screen shots of your outpur, just like in Fig 7 in labi.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 0? That is largest = 0; //assume numberl is the largest smallest = 0; //assume numberl is the smallest if (largest numberl) largest = numberl; the same for number2, number3 if (smallest > numberl) smallest = numberl; the same for number 2, number 3. 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 Focus

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!