Seventh lab: Calendar: Part 3
Learning Objective(s)
- Learn to work with text files
- Learn to use exceptions
- Improve ability to use methods
Overview of the program
This lab should track the number of hours scheduled to be done in a day.
Details
- Activities include:
- Adding a task to a day (for a given date, the number of hours and the name of a task).
- Display all tasks associated with a given day
- Display the number of hours scheduled to that day
- Display the number of hours scheduled for a month
- File information
- Information about a given day should be stored in a file specified by the date (i.e. 2022_03_15) for March 15, 2022
- Each line starts with an integer specifying the numbers of hours and then a string specifying the task
- The program should allow tasks to be appended to a given file.
- Exception information
- All possible exceptions should be handled by your program.
- If the user specifies an invalid date, through an exception and catch it in the method that called it
- Method information
- Use one method to get the date from the user
- Use a separate method for each activity
- The program should be called CalendarKeeper
Submission
- Create an empty zip folder.
- Place your program (.java file) in it
- Place your software development report in it.
- Submit the zip folder on canvas
Optional improvements
none this time