Python Forum

Full Version: Need help on this work I have no clue where to start!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Personal Organizer

In this program, you will create a personal organizer. Using parallel arrays you will store the following information on each event in your organizer:

Month (1 - 12)
Day (1 - 31)
Year
Event name
If the user enters an incorrect month the month should be set to January.
If the user enters an incorrect day then the day should be set to 1.

Write the following methods:

Add an event
Print all events
Print events in a specific month
Your program should follow how the sample run (below) asks for input and how it outputs events.

It should first keep asking for new events to add until the user says NO. Then, it should print all the events entered. Finally, it should ask the user for a specific month that he or she would like to see events from.

Sample Run:

What is the event: Hour of Code
What is the month (number): 12
What is the date: 5
What is the year: 2016
Do you want to enter another date? NO to stop. yes
What is the event: Winter Break Starts
What is the month (number): 12
What is the date: 15
What is the year: 2016
Do you want to enter another date? NO to stop. yes
What is the event: Taxes Due
What is the month (number): 4
What is the date: 15
What is the year: 2017
Do you want to enter another date? NO to stop. NO

******************** List of Events ********************
Hour of Code
Date: December 5, 2016
Winter Break Starts
Date: December 15, 2016
Taxes Due
Date: April 15, 2017
What month would you like to see? (Enter the month number)4

********** Events in April **********
Taxes Due
Date: April 15, 2017



Test Run:

What is the event: Hour of Code
What is the month (number): 12
What is the date: 5
What is the year: 2016
Do you want to enter another date? NO to stop. NO

What is the event: WRONG MONTH
What is the month (number): 14
What is the date: 3
What is the year: 2017
Do you want to enter another date? NO to stop. NO

What is the event: WRONG DATE
What is the month (number): 6
What is the date: 56
What is the year: 2015
Do you want to enter another date? NO to stop. NO

What is the event: Python Final Exam
What is the month (number): 6
What is the date: 4
What is the year: 2017
Do you want to enter another date? NO to stop. NO

******************** List of Events ********************
Hour of Code
Date: December 5, 2016
WRONG MONTH
Date: January 3, 2017
WRONG DATE
Date: June 1, 2015
Python Final Exam
Date: June 4, 2017
What month would you like to see? (Enter the month number)6


********** Events in June **********
WRONG DATE
Date: June 1, 2015
Python Final Exam
Date: June 4, 2017

Hint: Don't forget that not all months have 31 days.
Thank you for sharing your homework, the forum can assist on parts your are stuck with but cannot do your homework for you.
When you get stuck, please post a minimal code sample (in python code tags) for the specific part your stuck on, explain what you expect to happen and what is actually happening and any errors received in error tags.
If someone can they will then assist you.
ok i guess i just wasted my time. goodbye
Careful, professors read this forum!
(Apr-01-2019, 10:02 PM)JTNA Wrote: [ -> ]ok i guess i just wasted my time. goodbye

What time? All you did was copy/paste your homework lol