Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

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

More Books

Students also viewed these Databases questions

Question

2. Identify issues/causes for the apparent conflict.

Answered: 1 week ago