Question: 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

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

1 Expert Approved Answer
Step: 1 Unlock

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... View full answer

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 Programming Questions!