Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I'm a java noob that is trying to understand a problem. How can you solve the below problem only using the main (no functions?) Write

I'm a java noob that is trying to understand a problem. How can you solve the below problem only using the main (no functions?)

Write a java program with a 2D array of 6*6. You should randomise a starting point and change the value from 0 to 1 in the array where you start. 1. The program now needs to make me walk all around the board at random (forward, backward, right or left) and stop when I've stepped on all the tiles in the array. When it's done that the output needs to show how many steps it's taken me to walk around. I also can't walk off the board, if I try, that isn't counted a step.

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

Oracle Solaris 11.2 System Administration (oracle Press)

Authors: Harry Foxwell

1st Edition

007184421X, 9780071844215

More Books

Students also viewed these Databases questions

Question

1.what is rule of law? 2.The administrative body of government?

Answered: 1 week ago

Question

Write a short note on - JUDICIARY

Answered: 1 week ago

Question

Dr. paul hansen is joining our staff.

Answered: 1 week ago

Question

When jones becomes ceo next month, well need your input asap.

Answered: 1 week ago