Question
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
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,GStep 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