Question: Write a C++ program to store in an array A of 100 cells N random numbers in the range 1 to 20. The program should

Write a C++ program to store in an array A of 100 cells N random numbers in the range 1 to 20. The program should prompt the user to choose from the following menu: (Write a function to solve each listed task) 1. Output each number in the array and its square root value. 2. Find the maximum and minimum values stored in A. 3. Store in an array Prime all the prime numbers stored in A (output Prime) 4. Find the percentage of even integers in A. 5. Exit.

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!