Question: For this assignment, you will gather information from the user for their next five calendar events. You will ask for the event name, the month,

For this assignment, you will gather information from the user for their next five calendar events. You will ask for the event name, the month, the day, and the year of the event. You will calculate a reminder date by subtracting 1 from the day (to make things easier, there will be no events that fall on the first of the month). You will then output a table to a file with the event information in it.
Sample Output
Enter the first event name: CSCI 101
Enter the month for the event: 11
Enter the day for the event: 12
Enter the year for the event: 2022
Enter the second event name: CSCI 202
Enter the month for the event: 11
Enter the day for the event: 14
Enter the year for the event: 2022
Enter the third event name: CSCI 201
Enter the month for the event: 11
Enter the day for the event: 17
Enter the third for the event: 2022
Enter the fourth event name: CSCI 210
Enter the month for the event: 11
Enter the day for the event: 18
Enter the year for the event: 2022
Enter the fifth event name: Thanksgiving
Enter the month for the event: 11
Enter the day for the event: 24
Enter the year for the event: 2022
Sample Output File
events.txt

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!