Question: generate a menu driven code in java: 1 . populate 2 - d array from file ( I need to be able to switch files

generate a menu driven code in java:
1. populate 2-d array from file (I need to be able to switch files BUT my file has 5 lines. the first 2 lines are the numbers of rows & columns. It looks like...
3
4
18910
33579
2628915
2. display the values in rows and columns (with labels)
3. display the array with row and columns with minimum values
4. display the array with row and column maximum values
5. display the array with row and column sums
6. display the array with row and column averages
7. display a 2d array with random values
a. program generates random number from 2-12 for rows
b. program generates random number from 2-12 for colums
c. asks user for the range of values to generate
Ive included a picture to show what it should look like format wise.populate from file (Currently: 2dfile_15values.txt)
display values in rows & columns
show with mins, 4) show with maxs, 5) show with sums
show with averages
populate with randon values
Enter your selection, or 'q' to quit: 5
Sums 28,58,96,79,57
generate a menu driven code in java: 1 . populate

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Accounting Questions!