Computers and Technology
Write a program that generates an array filled up with random positive integernumber ranging from 15 to 20, and display it on the screen.After the creation and displaying of the array , the program displays the following:[P]osition [R]everse, [A]verage, [S]earch, [Q]uitPlease select an option:Then, if the user selects:-P (lowercase or uppercase): the program displays the array elements position andvalue pairs for all member elements of the array.-R (lowercase or uppercase): the program displays the reversed version of thearray-A (lowercase or uppercase): the program calculates and displays the average of thearray elements-S (lowercase or uppercase ): the program asks the user to insert an integer numberand look for it in the array, returning the message wheher the number is found andits position ( including multiple occurences), or is not found.-Q (lowercase or uppercase): the program quits.NOTE: Until the last option (q or Q) is selected, the main program comes back atthe beginning, asking the user to insert a new integer number.