Question: C++(Loops,Arrays, and Functons) Write a short program that prompts the user and reads in integers into an array called Table. When the user enters a

C++(Loops,Arrays, and Functons)

Write a short program that prompts the user and reads in integers into an array called Table. When the user enters a negative number, the input stops. Keep track of how many numbers were read in (at least 5 and no more than 10; what size should you declare the array to have?)

Find and print the smallest value in the array AND the index where it is located. Then write code that will swap the smallest value and the first value in the array.

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!