Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a C++ program to declare a two dimensional array X of integers of 5 rows and 5 columns and store in it random
Write a C++ program to declare a two dimensional array X of integers of 5 rows and 5 columns and store in it random integers between 5 and 20 (5 points). The program should enable the user to choose from the following menu: (5 points) 1. Calculate and display the average of each column in the array. (10 points) 2. Search array X for integers that are multiple of 5 and store them in a new array Y. Display the content of Y. (10 points) 3. Create a new array Z and store in it the number of occurrences of integers stored in array X. Display the integers and their number of occurrences. (10 points) 4. Calculate and display the percentage of even integers in each row of the array. (10 points)
Step by Step Solution
★★★★★
3.47 Rating (154 Votes )
There are 3 Steps involved in it
Step: 1
include include For rand and srand include For time using namespace std const int rows 5 const int columns 5 Function to calculate and display the ave...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