Question: PART B: DATE BOOK A classic computer application is the electronic date book: a list of daily events stored in a calendar. Write a Java


PART B: DATE BOOK A classic computer application is the electronic date book: a list of daily events stored in a calendar. Write a Java program that can be used as a simple date book. The date book will use a separate array for each month of the year, with one array entry for each day in the month (0 = first day of the month, 1 = second day of the month, etc.). The date book is "simple" because at most one event will be allowed on each day Your program should include an Event class that will be instantiated for each event in the date book. The Event class consists of three instance variables: the starting time of the event (a String), the name of the event (a String), and the priority of the event (an integer value in the range 1-3, with 3 being the highest priority). Make all your instance variables private and write appropriate instance methods for processing them, including a constructor, toString), and any others needed by your program Each month in the date book will be stored as an array of Events. Days with an event will point to the appropriate Event object, and days without will contain nll Your program will produce three types of output (three views) for each month . A calendar view, listing the days of the week (Sunday to Saturday) horizontally across the top, and the days of the month underneath. Next to each day where there is a scheduled event, print an asterisk "". Like in a real calendar, the first day of the month can be any of the weekdays the order that they occur during the month. Do not display lines of output for days without events priority .A list of events, showing the day of the month and the details of the event (using toString). These can be displayed in . A list of the highest-priority events (those with priority 3). List only the names of the events, not the starting time or
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
