Dear student! Please follow the instructions to solve the problems: 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. Q4. It is convenient to quickly sosed the message you send through the internet to protect it. Let's.write two programs that will encode and decode hidden messages, Q4.1. Program reads a file toEncode.txt which consists of 5 lines, each line contains one characters only. After reading the input file program creates output file encodedMessage.txt. Each line of this file corresponds to the ASCII code of the character from input file. to Encode.txt encoded Message.txt 72 102 1 108 108 111 H 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