Question: Write a C++ code that: Asks the user to enter an integer (n) which represents the number of students in the programming section. Declares an
Write a C++ code that:
- Asks the user to enter an integer (n) which represents the number of students in the programming section.
- Declares an integer array to hold (n) components.
- Asks the user to enter the n elements of the array (one by one) and stores them into the array. The value entered by the user should be between 0 and 100.
- Finds the index of the smallest element in the array and displays it on the screen.
- Finds the average value for all the elements of the array.
- Copies the array into another array called newArray in reverse order (you have to declare the new array).
- Prints the array newArray on the screen.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
