Question: Solve writing the complete C + + program for each section a ) b ) c ) . thank you! Question # 3 Classes

Solve writing the complete C++ program for each section a) b) c). thank you!
Question\#3 Classes and Objects (14 pts)
You are tasked with creating a class called Event that represents various events with different attributes. Write a declaration for the Event class, including its data members and function members, based on the following UML. Save the declaration in a file named Event.h.
Event
- title: string
date: string
type: int //1 for Workshop, 2 for Seminar, 3 for Conference
attendees: int
Public Member Functions:
- Event()
- Event(string t)
- Event(string t, string d, int tp, int a)
- getTitle(): string
- getDate(): string
- getType(): int
- getattendees(): int
- setTitle(string t): void
- setDate(string d): void
- setType(int tp): void
- setattendees(int a): void
- isWorkshop(int tp): Boolean
- changeToConference(int number): void
- equals(Event e): Boolean
- reschedule(string newDate): void
3. Create an object event 3 using the third constructor, prompting the user for title, date, type, and attendees.
4. Display the details of all three events using displayInfo().
5. Check if each event (event1, event2, event3) is a Workshop. If an event is not a Workshop, ask the user if they want to change it to a Conference.
6. Create an integer array to store the number of attendees for each event. Display the total attendees across all events.
7. Update the attendees for event2 to be the sum of attendees from event1 and event3, and then display the updated total attendees.
8. Ask the user to reschedule event1 by providing a new date.
9. Compare all three events (event1, event2, and event3) to check if they are equal in terms of title, date, and type. Display appropriate messages based on the comparison.
10. Print the final details of all events and end with a closing message.
```
Enter event title for event2: AI Workshop
Enter event title for event3: Cloud Computing Seminar
Enter date for event3(YYYY-MM-DD): 2023-07-25
Enter type for event3(1 for Workshop, 2 for Seminar, 3 for Conference): 2
Enter number of attendees for event3: 150
Event details:
```
1. Title: General Meeting, Date: 2023-01-01, Type: Seminar, Attendees: 50
2. Title: AI Workshop, Date: 2023-03-01, Type: Workshop, Attendees: 10
3. Title: Cloud Computing Seminar, Date: 2023-07-25, Type: Seminar, Attendees: 150
Total attendees across all events: 210
Reschedule event1: Enter new date for event1(YYYY-MM-DD): 2023-05-01
Event rescheduled successfully.
Are all events equal? No, they differ in title, date, or type.
Closing the program.
Solve writing the complete C + + program for each

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!