I need help to make a code, that would read two text files.Each file should cont
ID: 3617098 • Letter: I
Question
I need help to make a code, that would read two text files.Each file should contain polynomials in the following formatfor example 5 3 4 18 0, should represent 5x3 + 4x+ 8. The program should promp the user to enter the name of eachfile, and check if each file is in assending order, then displaythe contents of both files. For example the following file is inassending order; file1 contains whichrepresnts 5 3 4 1 8 0 5x3+ 4x + 8 < 6x4 + 7x2 + 3 <7x4 + 7x2 + 3 6 4 7 2 3 0 7 4 7 2 3 0 I will give high rate who ever give me at least a clue on howI can do this code Thanks alot I need help to make a code, that would read two text files.Each file should contain polynomials in the following formatfor example 5 3 4 18 0, should represent 5x3 + 4x+ 8. The program should promp the user to enter the name of eachfile, and check if each file is in assending order, then displaythe contents of both files. For example the following file is inassending order; file1 contains whichrepresnts 5 3 4 1 8 0 5x3+ 4x + 8 < 6x4 + 7x2 + 3 <7x4 + 7x2 + 3 6 4 7 2 3 0 7 4 7 2 3 0 I will give high rate who ever give me at least a clue on howI can do this code Thanks alotExplanation / Answer
please rate - thanks not complete, but should get you started import java.util.*; import java.io.*; public class untitled {public static void main(String[] args)throwsFileNotFoundException {int i,j; boolean one,two; int[][]base =new int[3][3]; int[][]exp =new int[3][3]; Scanner in=new Scanner(new File("numbers.txt")); for(i=0;iRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.