Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This code is for java and should be simple with updated java standards I have this text file: R 1: &,&,$,O,P,G R 2: O,&,G,$,P,$ R

This code is for java and should be simple with updated java standards

I have this text file:

R 1: &,&,$,O,P,G R 2: O,&,G,$,P,$ R 3: P,G,$,*,&,$ R 4: O,&,P,O,$,G R 5: O,#,O,&,P,& R 6: #,$,#,O,P,B R 7: O,G,#,O,G,G

You can think of it as a matrix with 7 rows and 6 columns where R row 1 is the center. In this code, the rows should be char arrays.

I need to create a class that will take this text file and re-arrange the elements of the rows where each element matches an element from another row, There should be at least one solution

Once a solution is found it should write an output labeling each new R row positions if no solution is found please write an output that states that. Below is a picture where there is at least two elements not in sync, one is in red and the other is in purple. Please write comments of each step of the class created. Thank you

image text in transcribed

Problem.txt - Notepad File Edit Format View Help I 1:&&,$,0,P,G I 2: 0, & GSP,$ T 3: P, 9*,&, $ T 4: 0,&,P,0,$, T 5: 0,#,0,&,P,& 1 6: #,$,#,0,P,B 17: 0,4,#,0,G,G Problem.txt - Notepad File Edit Format View Help I 1:&&,$,0,P,G I 2: 0, & GSP,$ T 3: P, 9*,&, $ T 4: 0,&,P,0,$, T 5: 0,#,0,&,P,& 1 6: #,$,#,0,P,B 17: 0,4,#,0,G,G

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

Database Systems Design Implementation And Management

Authors: Carlos Coronel, Steven Morris

14th Edition

978-0357673034

More Books

Students also viewed these Databases questions

Question

13. You always should try to make a good first impression.

Answered: 1 week ago