Assignment title: Information
include commenting in all of these assignments at the top. The comment header should contain: your name, course code (1047W15), assignment & question number, date, and a brief description. The code must be neatly formatted with proper indenting. A modest amount of commenting should also be included in the body of the code. Marks will be deducted for inadequate documentation. Part A: This question is to be submitted to the instructor in the form of a Word (or Open Office) document containing the Java code and appropriate screen capture(s) of the output. The file name must be in the form ASSIGN2A_YourName where 'YourName' is your last name followed by your first name with no space. Upload the file to CMS. Problem 12.15 (Page 490) The output must be displayed as 5 columns of digits – that is 5 numbers per row. Use printf (Page 145-148) to make sure the columns are formatted nicely. Problem 12.19 (Page 490) Report the result to the screen. Part B: Write code and test the solutions for the following problems from the textbook. Submit the .java files for each question to CMS. The answers are due on January 23 rd and the programs are to be demonstrated to the Teaching Assistant (Daniel) by January 30 th. He will ask questions to make sure you understand the material. Problem #1 Write a program that will remove all the occurrences of s specific string from a text file. Your program should first ask for the text file name to be processed – and after verifying that the file exists, ask the user for the string of text to be removed. Assume the string has no white space – just characters. Save the new file using the old filename appended with "Ver2-" at the front. So for the file "MyStuff.txt" the file would be saved as Ver2- MyStuff.txt". Problem 12.13 (Page 489-490) The file name for this question will be collected from the user using an appropriate prompt. The report should look something similar to the output in Figure 12.13