Seventh lab: Calendar: Part 3

Learning Objective(s)

  1. Learn to work with text files
  2. Learn to use exceptions
  3. 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

  1. Create an empty zip folder.
  2. Place your program (.java file) in it
  3. Place your software development report in it.
  4. Submit the zip folder on canvas

Optional improvements

none this time
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r1 - 2022-02-28 - cathybareiss
 
  • Edit
  • Attach
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback