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# Classes and Objects 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 for Workshop, for Seminar, for Conference
attendees: int
Public Member Functions:
Event
Eventstring t
Eventstring t string d int tp int a
getTitle: string
getDate: string
getType: int
getattendees: int
setTitlestring t: void
setDatestring d: void
setTypeint tp: void
setattendeesint a: void
isWorkshopint tp: Boolean
changeToConferenceint number: void
equalsEvent e: Boolean
reschedulestring newDate: void
Create an object event using the third constructor, prompting the user for title, date, type, and attendees.
Display the details of all three events using displayInfo
Check if each event event event event is a Workshop. If an event is not a Workshop, ask the user if they want to change it to a Conference.
Create an integer array to store the number of attendees for each event. Display the total attendees across all events.
Update the attendees for event to be the sum of attendees from event and event and then display the updated total attendees.
Ask the user to reschedule event by providing a new date.
Compare all three events event event and event to check if they are equal in terms of title, date, and type. Display appropriate messages based on the comparison.
Print the final details of all events and end with a closing message.
Enter event title for event: AI Workshop
Enter event title for event: Cloud Computing Seminar
Enter date for eventYYYYMMDD:
Enter type for event for Workshop, for Seminar, for Conference:
Enter number of attendees for event:
Event details:
Title: General Meeting, Date: Type: Seminar, Attendees:
Title: AI Workshop, Date: Type: Workshop, Attendees:
Title: Cloud Computing Seminar, Date: Type: Seminar, Attendees:
Total attendees across all events:
Reschedule event: Enter new date for eventYYYYMMDD:
Event rescheduled successfully.
Are all events equal? No they differ in title, date, or type.
Closing the program.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
