Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

yS Write a program that satisfies the following for 2D arrays 1) Prompts users with this menu: a. Create: returns a n uninitialized 2D array

image text in transcribed
yS Write a program that satisfies the following for 2D arrays 1) Prompts users with this menu: a. Create: returns a n uninitialized 2D array of the size nRows, nCols b. Fill Rand: populates the array with random ints within a range [min, max] c. Print: displays the array on the screen d. Set at: given row and col, overwrite the value at the e. Print at: given row and col, returns and displays the f. Get Row: given a rowt, returns and displays all elements g. Get Col: given a col#, returns and displays all elements h. Set Row: given a row i. Set Col: given a col#, set the col with the given user col given location value at the given location in the row in the col set the row with the given user row j. Mean of Row: computes, returns and displays average of k. Mean of Col: computes, returns and displays average of . Sum of All: computes, returns and displays average of m. Mean of All: computes returns, and displays total of the n. End: Quits the program given row a given col the array array 2) Every task in (1) must be implemented as a method 3) Write a while loop to keep prompting the user for next option 4) Write a switch structure that performs the selected task

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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_2

Step: 3

blur-text-image_3

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

Visual Basic 4 Ole Database And Controls Superbible

Authors: Michael Hatmaker, C. Woody Butler, Ibrahim Malluf, Bill Potter

1st Edition

1571690077, 978-1571690074

More Books

Students explore these related Databases questions