Question: Arrays are considered to be fundamental data structures for storing a collection of items, each one being identified by its index. The items in these

Arrays are considered to be fundamental data structures for storing a collection of items, each one being identified by its index. The items in these collections can be stored in any given order.
Arrays can be sorted using many different types of sorting algorithms that utilize various logic and control structures (loops).
You are required to implement a console application using visual studio that allows a user to populate an array and then sort using either a bubble sorting or selection sort algorithm approach.
Your application should also allow the user to specify the sorting order (ascending or descending); hint, this can be done by specifying a parameter flag for your sort function. C# programming language should be used
Key Requirements
- Allow the user to enter a maximum of 7 random integers
- Exception handling to ensure that unwanted inputs are caught (letters etc)
- Sort the array elements (in either Ascending or descending)
- Display both the unsorted list and sorted list back to the user
- After displaying the array elements to the user, allow the user to select a specific index from the array and update its value.

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!