Last lab: Finish the project

11 Mar 2022 - 14:54 | Version 1 |

Learning Objective(s)

  1. Show all that you have learned this semester.
  2. Use existing classes to finish the calendar project.

Overview of the program

You are adapt your calendar keeper from lab 7 to use arrays to store the data instead of files.

Details

  • Create a Calendar Keeper class that interacts with the user the same way your lab 7 does.
  • Create a Calendar class
    • It should not use files.
    • It should use an array to store a number of days
    • Only create an entry in the array of days when there is at least one task for it.
    • The array need not be sorted.
    • If a task is being added to a day that already exists (i.e. has at least one task in it already), the new task should just be added to that task.
    • It should be able to find a given day in the list of days.
    • This class does not need an equals or compareTo
  • All normal exceptions should be handled (not thrown)

Submission

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

Optional improvements

  • Save the data between each running of the program in a binary file and load it back up when the program launches
  • Add another option that displays a given month's calendar with a * after each date that has a least one task.
  • Add another option that displays an entire year's calendar with a * after each date that has at least one task.
  • Sort the days before they are ever displayed.
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback
This website is using cookies. More info. That's Fine