subject

Assignment 8: Personal Organizer In this program, you will create a personal organizer. You will ask the user for the name of an event, the month it is happening, along with the day and year it is happening. If the user incorrectly enters one of those values, a default value is set instead. The user can do this for as many events as they have. After the user has entered all of the events, the whole list of events (along with their date) should be output to the user. Then, the user is allowed to choose a specific month, and only the events taking place in that month are output. It may sound simple, but there is a lot that goes into making this program! One of the best ways to do this is with parallel arrays: one for the eventName, eventMonth, eventDay and eventYear. This allows you to easily add and output all of the details of an event. There is some very helpful starter code already provided in your programming environment, but in order to build the full program, follow the steps and instructions below very carefully. Benchmarks In the MAIN portion of your program, four arrays are already created: eventName: to store the event name eventMonth: to store the event month eventDay: to store the event day eventYear: to store the event year addEvent Let's first edit the addEvent() function - there are no parameters necessary. Notice that the addEvent() function is already defined right above the MAIN portion of your program. Inside of the addEvent() function, do the following: Using four prompts, prompt the user for the event name, event month, event day and event year. Event name should be entered as a string Event month should be entered as an integer (1 - 12) Event day should be entered as an integer (1 - 31) Event year should be entered as an integer (Ex: 2020) Then, call the function validateMonth(parameter1) which takes one parameter - the month that the user entered. This function should return a number from 1 - 12 and replace the month value that the user originally entered. validateMonth N

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:30
Which of the following factors would your hypothetical supervisor look at when deciding whether to test a biological material sample for dna? the amount of other evidence you have implicating a suspect in a crime the annual budget for the crime lab both of the above none of the above; you would almost always order a test
Answers: 3
question
Computers and Technology, 24.06.2019 00:30
Afiling system in which an intermediary source of reference, such as a file card, must be consulted to locate specific files is called a(n) system. a. shelf filing b. direct filing c. indirect filing d. shingling
Answers: 1
question
Computers and Technology, 24.06.2019 09:00
Technician a says that a new replacement part is always good. technician b says that sometimes recent repair work will be the cause of a complaint. who is correct? a. both technicians a and b b. technician a c. technician b d. neither technician a nor b
Answers: 3
question
Computers and Technology, 24.06.2019 09:30
Atype of researcher who uses computers to make sense of complex digital data
Answers: 1
You know the right answer?
Assignment 8: Personal Organizer In this program, you will create a personal organizer. You will ask...
Questions