Computer Science, asked by jazzyjet0921, 10 months ago

we have a programming assignment in adhesive, here is what it says. 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 invalid month (not 1-12), then the month should be set to January. If the user enters an invalid day (such as June 56th), then the day should be set to 1.

Declare the following arrays:

eventName: to store the event name
eventMonth: to store the event month
eventDay: to store the event day
eventYear: to store the event year
Write the following methods:

Add an event
Name it addEvent
Takes four parameters in the following order:
array of names
array of months
array of days
array of years
This function will ask the user for the event name, month, day, and year (in that order).
Next, it will append the name, month, day, and year to the appropriate array.
Invalid parameters should be stored as default.
Print all events
Name it printEvents
Takes four parameters in following order:
array of names
array of months
array of days
array of years
This function prints all events in the arrays in the specified format.
Print events in a specific month
Name it printMonth
Takes five parameters in following order:
selected month as integer
array of names
array of months
array of days
array of years
This function will print all events in the arrays in the specified format for the given month.
Your program should follow how the sample run shown below, including asks for input as well as 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 they would like to see events from.

Hint
Don't forget that not all months have 31 days.




Need help

Answers

Answered by vidhya45
0

Answer:

january march may july augut october december have 31 days

Similar questions