Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started