Question: Dear student! Please follow the instructions to solve the problems: (a) Write down an algorithm to solve this problem (b) Draw the flowchart of the

 Dear student! Please follow the instructions to solve the problems: (a)
Write down an algorithm to solve this problem (b) Draw the flowchart

Dear student! Please follow the instructions to solve the problems: (a) Write down an algorithm to solve this problem (b) Draw the flowchart of the proposed algorithm (C) Write down the Java program for the solution (d) Run your Java program in IDE NetBeans NB! 1. The typical answer on the question expected to be graded with full mark can be found on the next page. Q3. Frequently when two files differ there are too many lines that are different and you don't want to see them all Write a Java program that compares two text files line by line. Read in a line from each file. Compare the two lines. If they are identical, continue with the next two lines. Otherwise, write out into the output file fileCompare 03.txt the line number and the two lines with space delimster, and continue. Two input files consists of S lines each. The input file names has to be entered by a user. Close cach file when it is no longer needed. Example: Line Filel.exe File2ext fileCompare_03.ext hello Hallo! hello Hello! I am learning Java! I am learning Java! 3 I am student! We are students I I am a student! We are students! Python Python if statement If statement 2 3 Expected ptototype of the answer on typical question in the Assignment Q1. Write a Java program that creates an empty. Program print out a message "File created: filename" if file is created or "File already exists." il file already exists. The file name has to be entered by a use. 6 (*) Write down an algorithm to solve this problem 1 Start Print Input filename 3. Read a name of the file to create Create flie 5 i fle is crented print -File created: Plename" else print File already exists End (1) Draw the flowchart of the proposed algorithm (Figure 1) (c) Write down the Java program for the solution import exs.de. import IX.10.JRENCER import extilcone public class Scenteile! public static void durinistrin aces) tryt Scanner in = new Scannersystem.in); String filename = in.next(): File mxtile = new File(filename): if (tile.seateNewsle satem.out.printin/"File created+mte.setNome: else System est eritior"); } catch is e) { System.out.println("An error occurred"); BiStack tracell: 6-10.0-4-1 Do it like this example (6) Run your Juve program in IDE NetBeans please fications Output - Fles rund X File created input.txt BUILD SUCCESSFUL total tine seconds

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!