Overview
This lab gives you practice with the following java functionalities:
- Java File access using FileWriter.
LEGEND: Keyboard Screen
Task 1: MillionaireTimeline 2.0
Update your MillionaireTimeline program form Lab 4.0 so that the output report goes to a file (instead of to System.out).
- Add a step prompting the user for a file name. Write the timeline report to the file using FileWriter.
- If no filename is entered (i.e., the user simply hits return without typing a name), use the default file name millionaire_report.txt
- Use the approach introduced in Wednesday's class and described in the textbook.
- Decide how you will deal with the case in which the user enters the name of an already existing file, and document it in comments; also inform the user of what happens in this case.
