subject

You will be writing a scheduling application allowing a convention center to schedule events at their location. This program will contain two different classes: Date and Event. Both classes should have hand. cppfiles: You will have five files in total. You may use the Date class created from the 5-6-20 in-class exercise. As a reminder, Date should have the following: Member variables: • int day; int month; • int year; Member functions: • setDate: Takes three arguments: the day, month, and year. Sets the day, month, and year members of the object. Do not allow values to be negative, day to be greater than 31, and month to be greater than 12. printDate: Uses cout to print the data in the format "dd/mm/". You need to include iostream to your Date. cpp file to do this. • Getters for the members. Event should have the following: Member variables: • Date eventDate; • string eventName: int startHour: Uses a 24-hour clock, so should be a value between 0 and 23 • intendHour: Uses a 24-hour clock, so should be a value between 0 and 23 Member functions: • printEvent. Use cout to print all info about this event. The name of the event, the start and end times (you can simply print their value i. e. from 14 to 16) and the Date. • Setters and Getters for the member variables. • A constructor which takes a string for the name, ints for the start and end hours, and a Date object. Note: For sake of simplicity, each event will only take one day. Each event will also not go over midnight, so startHour must be less than endHour. For example, an event that starts at 2pm and ends at 4pm would have a startHour of 14 and an endHour of 16. In your program's Source. cpp, create a vector that holds Event objects. In main, the user has the following choices: • Add an event to the vector. Ask the user for the date info (day, month, year) start and end time (the user will enter values between 0 and 23) and the name of the event: If there is already an event in the vector on the given gate and its time overlaps the event the user is trying to add, print out the info about that event and do not let them add the new event.] Cancel an event: The user will type in the name of the event to cancel. Remove the event from the vector (if it exists). • View all events: In a loop, print the info of all the events currently planned. Quit Submit all 5 files (or copy and paste the code from all 5 files).

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 20:00
How is the number 372 written when expanded out to place values in the base 8 (octal) number system? a. 2 x 4 + 3 x 2 + 4 x 1 b. 3 x 64 + 7 x 8 + 2 x 1 c. 3 x 8 + 7 x 7 + 2 x 6 d. 3 x 100 + 7 x 10 + 2 x 1
Answers: 1
question
Computers and Technology, 23.06.2019 18:00
Ramona enjoys her job because she is able to kids in an after school program. the work value ramona feels strongest about is a. leadership b. risk c. independence d. work with people select the best answer from the choices provided a b c d
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
Of the following pieces of information in a document, for which would you most likely insert a mail merge field?
Answers: 3
question
Computers and Technology, 24.06.2019 10:00
Which feature of a blog to restore and retrieve older post
Answers: 3
You know the right answer?
You will be writing a scheduling application allowing a convention center to schedule events at thei...
Questions
question
Chemistry, 13.11.2020 20:10
question
Mathematics, 13.11.2020 20:10
question
Biology, 13.11.2020 20:10
Questions on the website: 13722367