Question
This is all the provided information. I need with a python program for the following: Help me develop a method occursOn(day, month, year) that checks
This is all the provided information. I need with a python program for the following:
Help me develop a method occursOn(day, month, year) that checks whether the appointment occurs on the given date. For example, for a monthly appointment, you must check whether the day of the month matches.
Write other methods as needed (look at the User Interface given below and decide what functions you may need).
At the start of the program, have 5 appointments for each subtype (i.e. 'hard-code' these in the program/file).
Give the user the option to add new appointments. The user must specify the type of the appointment (i.e. Onetime, Daily, and Monthly), the description, and the date.
The User Interface should look like the following:
A. See all current Appointments
B.See all current Appointments on a given date
C. Make a new Appointment
D.Cancel an existing Appointment
E. See Appointments according to description
F.Reload Appointment data from a File
G.Exit the Program
Please Enter Your Choice: _
Design the sub-menus per your choice/need. For each of the "See Appointments" options above (i.e. A, B, E), the sub-menu should allow the user to save the data to a file. The user should be able to give the name of the file.
Then, in option F above, allow the user to reload the data from a file. Here also, allow the user to specify the name of which file to load.
After each menu/ sub-menu choice is completed, come back to the Main User Interface, i.e. the only way to exit the program is though Choice G.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started