Question: 1. Write and execute a short computer program that reads integer numbers, entered from a keyboard, until the same number is entered twice in a

 1. Write and execute a short computer program that reads integer

1. Write and execute a short computer program that reads integer numbers, entered from a keyboard, until the same number is entered twice in a row, and then identify and print the smallest number, the largest number, and the average value (don't count the final duplicate number in the average). Numbers are all to be within the range I-32768 +32767]. You may use any computer language you wish (C or Java are preferred.) If you use Matlab, you must write and execute the program as an ".m file", and not simply enter commands from the user interface. Execute the program, entering 12-15 values, scattered across the above range (both positive and negative values). Turn in a printout of the program, the entered numbers, and the results Example: 400 -2500 18000 -40 -40 Smallest2500 Largest 18000 Average 3965

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!