Computers and Technology
Computers and Technology, 04.03.2021 21:10, jeanieb

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

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 06:30, miguel3maroghi
This technology is used to produce high-quality documents that look good on the computer screen and in print. wiki presentation paint desktop publishing
Answers: 3
image
Computers and Technology, 22.06.2019 07:00, chuchi24
Robots with telescoping arms are sometimes used to perform tasks (e. g., welding or placing screws) where access may be difficult for other robotic types. during a test run, a robot arm is programmed to extend according to the relationship r = 3 + 0.5cos(4θ) and the arm rotates according to the relationship θ=−π4t2+πt , where r is in feet, θ is in radians, and t is in seconds. use a computer program to plot the path of tip a in x and y coordinates for 0 ≤ t ≤ 4s.
Answers: 2
image
Computers and Technology, 22.06.2019 19:00, alyssashae1818
Which parts of a presentation should be the most general? a. introduction and conclusion b. introduction and outline c. outline and conclusion d. outline and body
Answers: 1
image
Computers and Technology, 23.06.2019 19:30, wilkinsonei4069
Anul 2017 tocmai s-a încheiat, suntem trişti deoarece era număr prim, însă avem şi o veste bună, anul 2018 este produs de două numere prime, 2 şi 1009. dorel, un adevărat colecţionar de numere prime, şi-a pus întrebarea: “câte numere dintr-un interval [a, b] se pot scrie ca produs de două numere prime? “.
Answers: 1
Do you know the correct answer?
Assignment 8: Personal Organizer In this program, you will create a personal organizer. You will ask...

Questions in other subjects:

Konu
Mathematics, 02.02.2020 21:03
Konu
Mathematics, 02.02.2020 21:03