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 02:50
Which of the following had the greatest influence on opening the internet to the generly public
Answers: 1
question
Computers and Technology, 23.06.2019 01:40
You have a linux system that has a 1000gb hard disk drive, which has a 90gb partition containing an ext4 filesystem mounted to the / directory and a 4gb swap partition. currently, this linux system is only used by a few users for storing small files; however, the department manager wants to upgrade this system and use it to run a database application that will be used by 100 users. the database application and the associated data will take up over 200gb of hard disk space. in addition, these 100 users will store their personal files on the hard disk of the system. each user must have a maximum of 5gb of storage space. the department manager has made it very clear that this system must not exhibit any downtime as a result of hard disk errors. how much hard disk space will you require, and what partitions would you need to ensure that the system will perform as needed? where would these partitions be mounted? what quotas would you implement? what commands would you need to run and what entries to /etc/fstab would you need to create? justify your answers.
Answers: 3
question
Computers and Technology, 24.06.2019 00:30
Match the sentence fragment in the first column with the appropriate ending in the second column. a little per favore?
Answers: 1
question
Computers and Technology, 24.06.2019 00:40
To maintain clarity and focus lighting might be needed
Answers: 2
You know the right answer?
You will be writing a scheduling application allowing a convention center to schedule events at thei...
Questions
question
English, 22.09.2019 21:50
question
English, 22.09.2019 21:50