Question
I am beginner please help. Will rate good. Write a code in JAVA that takes the input of the number of rows and columns required
I am beginner please help. Will rate good.
Write a code in JAVA that takes the input of the number of rows and columns required by the user. The code should basically take the input and store a given item to the first place avaliable and when it comes to add the next item - it should add to the next first empty space found.
The code should print first the row and col number and then an output showing '#" that the place is booked - like in the example below.
Row: 0
Col: 0
(a map example with 3 rows and 2 col if entered by the user)
| # | | |
| | | |
| | | |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started