Question: I need c++ code not a c# This is the most complex application that you have seen so far. It comprises of six user defined
I need c++ code not a c#















This is the most complex application that you have seen so far. It comprises of six user defined types: three classes, a struct and two enume. This assignment attempts to simulate a simple version of a Theater application. In this application the user can search for a movie based on genre, name of actor, the time of the day and the day of the week. You should define your types in the following order: the two enums, Time, Movie, show and then Theater. In the ted harness, you will create a theater, some movies and some shows. You will add movies to the show and then add the shows to the theater. Then, you will perform some simple queries on this collection. The DayEnum enum 2Mark 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. The Time Class 13 Marks This 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 minuter. regonstructor: 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 Methods: 1. std::ostream\& operator ,50 you will have to use the appropriate method to check for the presence of anactor. 7. void PrintShows(Day Enum day, Time time) - This public methodtakes 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 og Copy and paste the following code in your Main'i. (Note I have added using name prefixes before any of the typer.i Movie terminator["Terminator 2: Judgement D ay", 1991, 105): terminator.AddActort "Arnold Schwarzenegger"': terminator.SetGenre(GenreEnum::Horror): terminator.AddActor. "Linda Hamilton"': Show sl(terminator. Time (11,35). D ayEnum::Mon, 5.95); std::cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
