Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA: Whats wrong with my code? the assignment is : What the output is supposed to be: What my output is: only the original coordinate

JAVA: Whats wrong with my code?

the assignment is :

image text in transcribed

What the output is supposed to be:

image text in transcribed

What my output is: only the original coordinate changes, none others. even thought i wrote the code to check and change left right up and down.

image text in transcribed

my code: i feel like im very close so i would like to change/add as little as possible. Please let me know whats going on.

image text in transcribed

image text in transcribed

First, read and display the contents of this matrix to the screen. Second, prompt the user for (row, col) coordinates (what are passed to your program through command line argument list). Note the character that is stored in that position. Replace that character with a*. Then recur up, down, left, and right, (but NOT diagonally) and replace similar characters with '". Study these two examples

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