Question: 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
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 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. Q1. Write a program that creates a new file by concatenating two files together. There will be two source files, ench source file must exist (if not, write an error message and exit). Each source file contains only one line. The file names has to be entered by a user. Create the new file with name fileConcat Q1.txt by opening the source files one at a time, in order, reading each file and writing each file to new file. Close each file when it is no longer needed. Although each source file muust exist, it is acceptable for a source file to be empty. Example: o filel. file2.txt fileConcat Ol.txt Content of file !! Content of file 21 Content of file 1.Content of file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
