Computers and Technology

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).

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 24.06.2019 18:20, 12375819
Use a while-end loop in a script file to calculate the sum of the first n terms of the series: summation sign on the top n bottom k=1 : )^k * k^2 +5k)/3^k show the script file and the two results of n = 10 and n = 20.
Answers: 2
image
Computers and Technology, 25.06.2019 00:00, tori3981
When pasting an existing chart into a word document, you can choose to using the paste options button. a. paste the chart as a picture b. embed the chart c. add the chart while keeping the destination formatting intact d. insert the chart while keeping the source formatting intact
Answers: 1
image
Computers and Technology, 25.06.2019 04:10, danny123421
8. create an abstract student class for parker university. the class contains fields for student id number, last name, and annual tuition. include a constructor that requires parameters for the id number and name. include get and set methods for each field; the settuition() method is abstract. create three student subclasses named undergraduatestudent, graduatestudent, and studentatlarge, each with a unique settuition() method. tuition for an undergraduatestudent is $4,000 per semester, tuition for a graduatestudent is $6,000 per semester, and tuition for a studentatlarge is $2,000 per semester. write an application that creates an array of at least six objects to demonstrate how the methods work for objects for each student type. save the files as student. java, undergraduatestudent. java, graduatestudent. java, studentatlarge. java, and studentdemo. java.
Answers: 1
image
Computers and Technology, 25.06.2019 12:30, jade137
What is the purpose of lookup tables in spreadsheet software
Answers: 1
Do you know the correct answer?
You will be writing a scheduling application allowing a convention center to schedule events at thei...

Questions in other subjects: