Question: Write a program that lets the user enter 10 values into an array. The program should then display the largest and the smallest values stored

Write a program that lets the user enter 10 values into an array. The program should then display the largest and the smallest values stored in the array.

The program should display the following message to the user at the beginning "This program will ask you to enter ten values. Then it will determine the largest and smallest of the values you entered.Please enter 10 integers separated by spaces: " And then after user entered the numbers, it should display the following: "The largest value entered is " followed by the largest number found, and "The smallest value entered is " followed by the smallest number found.

Please note that your can submit the assignment up to 5 times.

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!