Question: C++ Program Write a program that generates an array filled up with random positive integer number ranging from 15 to 20, and display it on

 C++ Program Write a program that generates an array filled up

C++ Program Write a program that generates an array filled up with random positive integer number ranging from 15 to 20, and display it on the screen. After the creation and displaying of the array, the program displays the following: [Plosition [RJeverse, [A]verage, [SJearch, [QJuit Please select an option. Then, if the user selects: -P (lowercase or uppercase): the program displays the array elements position and value pairs for all member elements of the array. -R (lowercase or uppercase): the program displays the reversed version of the array -A (lowercase or uppercase): the program calculates and displays the average of the array elements S (lowercase or uppercase ): the program asks the user to insert an integer number and look for it in the array, returning the message wheher the number is found and its position ( including multiple occurences), or is not found. Q Clowercase or uppercase): the program quits. NOTE: Until the last option (q' or 'Q) is selected, the main program comes back at the beginning, asking the user to insert a new integer number. Please include brief comments throughout the C++ program about what the code for a particular section is doing, ilwakd

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!