Answered step by step
Verified Expert Solution
Link Copied!

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

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... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Programming questions

Question

Did the researcher do a confirmability audit?

Answered: 1 week ago

Question

What was Neon's cest of purchases for Ifle Moch of Maich

Answered: 1 week ago

Question

abraham kuyper

Answered: 1 week ago