Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hey guys! Hope your new year's productive. I'm hacking at this #CompSci assignment and kinda got stuck/confused on my 1D, 2D, ArrayList interactions. If some

image text in transcribed

Hey guys!

Hope your new year's productive. I'm hacking at this #CompSci assignment and kinda got stuck/confused on my 1D, 2D, ArrayList interactions. If some one could drop some inspirational code for clarification it would be appreciated.

Mike

This assignment will assess your understanding of two-and one-dimensional arrays and ArrayLists. Task Write an application that uses two-dimensional arrays, parallel one-dimensional arrays, and ArrayLists to find the largest rows and columns. Your application will randomly fill annxn matrix with Os and 1s. Then, using two one-dimensional ararys and two ArrayLists (one of each for rows, one of each for columns), count the number of 1s. Lastly, output the row and column numbers with the most 15. Rules You must get the value of n from the user. You must store the counts of the number of 18 (or sums) for the rows and columns in one-dimensional arrays that are parallel to the two-dimensional array . You must use ArrayLists to keep track of the rows and columns with the most 15 Here are a few sample runs (user input in bold): Sample 1 Enter the array size: 4 1111 1010 0001 OOOO The largest row is: [0] The largest column is: 0, 2, 3] Sample 2 Enter the array size: 7 0110101 1100101 0000100 0000101 1010000 0000111 0001000 The largest row is: [0, The largest column is: 1] [4] Deliverables This assignment will be submitted via GitHub. To get started, click this link to get some starting files and create your repository (hereby referred to as repo). You may then want to clone it to your hard drive like we discussed in class (see the video recorded that day if you need more help or stop by office hours). Then, as you go through, commit your file to the repo as we discussed in class. In your readme file (there should be one in your repo already if you clicked the above link), you must include a description of how your code works and how it meets the requirements

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

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

More Books

Students also viewed these Databases questions

Question

Can consultants replace outsourced activities? Why or why not?

Answered: 1 week ago