Create a program in C that does the following 1Fill array wi
Create a program in C++ that does the following:
1.Fill array with user input
2.Presents the user a menu where they choose between:
a.Fill array with user input
b.Display array
c.Shuffle elements in your array randomly
d.Sort array using Bubble Sort
e.Sort array using Selection Sort
f.Exit program
3.Return to step 2
will be using an array of integers with 10 elements. Your sort and shuffle features should be implemented as functions that take the array and any other required variables as arguments. Display your array after accepting input, shuffling it, or sorting it.
Input should accept either a single lowercase char or an integer, prompts should tell user what to enter.
Solution
# include <iostream>
| 02 |
