Question: i need c++ code not a c# i need c++code The DayEnum enum This type represents the days of the week and is comprised of

i need c++ code not a c#
i need c++ code not a c# i need c++code The DayEnum
enum This type represents the days of the week and is comprised
of seven constants. The constants are the first three letters of the
day of the week. It is not necessary to assign values to
the members. The GenreEnum Enum This type represents the various categories of
movie and is comprised of about 10 constants. It is not necessary
to assign values to the members. is type represents a time when
a movie is schedule to be shown. Fields: All the fields are
private ints, 1. hours _ - this int represents the field hours.
2. minutes_ - this int represents the field minutes: Gonstructor: 1. Time(int
hours, int minutes) - This public constructor takes one mandatory and one
optional parameters and assigns them to the appropriate fields. The second parameter
is optional hods: std::ostream\& operator Methods +Theater(name+Addshow(show+Printshows()+Printshows(genre:GenreEnum)+Printshows(day:DayEnum)+Printshows(time:Time)+Printshows(actor:string)+Printshows(day:DayEnum,time:Time):void:string):Show):void:void:void:void:void:void Felds: 1. name - this
field is a string representing the name of the theater 2. Shows
- this private field is a collection of Show objects. Gonstructor: 1.
i need c++code

The DayEnum enum This type represents the days of the week and is comprised of seven constants. The constants are the first three letters of the day of the week. It is not necessary to assign values to the members. The GenreEnum Enum This type represents the various categories of movie and is comprised of about 10 constants. It is not necessary to assign values to the members. is type represents a time when a movie is schedule to be shown. Fields: All the fields are private ints, 1. hours _ - this int represents the field hours. 2. minutes_ - this int represents the field minutes: Gonstructor: 1. Time(int hours, int minutes) - This public constructor takes one mandatory and one optional parameters and assigns them to the appropriate fields. The second parameter is optional hods: std::ostream\& operator Methods +Theater(name+Addshow(show+Printshows()+Printshows(genre:GenreEnum)+Printshows(day:DayEnum)+Printshows(time:Time)+Printshows(actor:string)+Printshows(day:DayEnum,time:Time):void:string):Show):void:void:void:void:void:void Felds: 1. name - this field is a string representing the name of the theater 2. Shows - this private field is a collection of Show objects. Gonstructor: 1. Theatre(string name) - This is the public constructor that takes the name of the theater This constructor does the following: a. Assigns the argument to the appropriate field. b. Initialize the shows field to a new collection of shows. lethods: 1. void AddShow(Show show) - This public method takes a show object and adds it to the collection of shows. Again, these six methods illustrate the benefits of method overloading. All of the following overloaded methods below will display the following: - Name of the theater. - The value of the filter, the first method has no filter, so instead display "ALL shows". - A numbered list of the movies displayed. 2. void Printshows ( ) - This public method does not take any argument neither does it return a value. It displays all the shows that is available in the shows_collection. 3. void Printshows (Gen reEnum genre) -This public method takes a genre as an argument and display all the matching shows. 4. void Printshows (Day Enum day) - This public method takes a day object as an argument and display all the matching shows. 5. void Printshows ( Time time) - This public method takes a time object as an argument and display all the shows natching the hour value of this time object. This will only work correctly if the = operator is implemented correctly in the Time class: The Time object that is associated with a show is not the same as the Time object that. will be passed as the argument, therefore companison with the usual = operator will not work because the object reference are not the sarat. Hence you have to supply a custom = = operator that compares the numeric values of the fields of the two objects must be compared 6. void Printshows (string actor) - The public nethod takes a string representing the name of an actor as an argument and display all the shows that this actor appears in. Remember that all the actors are stored as a voctorsstring>, so you will have to use the appropriate method to check for the presence of a actor. 7. void Printshows ( Day Enum day, Time time) - This public method takes a day value and a time value as arguments and display all the shows matching the day and the time value The Time object that is associated with a show is not the same as the Time object that will be passed as the argument, therefore the numeric values of the fields of the two objects must be compared. Testing Copy and paste the following code in your Main(), (Note I have added using prefixes before any of the typer.) Movie terminator("Terminator 2: Judgement D ay". 1991, 105): terminator.AddActor( "Arnold Schwarzenegger"): terminator. SetGenre(GenreEnum: Horror): terminator. AddActor( "Linda Hamilton"): Show sl(terminator. Time(11, 35). DayEnum:Mon, 5.95): std:icout

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 Databases Questions!