Implement the following flow chart in Java. You should have one Java file in the project called Homework1.java. The class should be called Homework1. see image.
The menu should contain the following options:
This is an example run of the program. The input and output files are shown after the code.
Please enter the input data file name:
input.txt
Please enter the output data file name:
Output.txt
Choose an option:
(A) Capitalize all words
(B) Lowercase all words
A
Process another file?
Y
Please enter the input data file name:
input.txt
Please enter the output data file name:
output2.txt
Choose an option:
(A) Capitalize all words
(B) Lowercase all words
B
Process another file?
n
Process finished with exit code 0
Input file:
line One
linE two
Line Three
Output file for option A:
LINE ONE
LINE TWO
LINE THREE
Output file for option B:
line one
line two
line three