Write a program to store integers in an array of size 10. Initialize your array in a function Get_Values () where the user will input 10 integers to fill the array. The program then print a menu given below for user and must be able to perform various functions that the user chooses. The user commands are: D Display all non-zero values in the array T Display the total. R Display all the numbers in reverse order. Q Quit the program.
A. Attempt the program by using 1D array. B. Attempt the program by using 2D array. Where array will be of size 2X5. C. Handle all three options in separate functions D. Display all non-zero values in the array E. Display the total. F. Display all the numbers in reverse.