Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need c++ code The Show class This class models a movie show. It simply captures the four required values for an object. A sh

I need c++ code

image text in transcribed

image text in transcribed

image text in transcribedimage text in transcribed

image text in transcribed

The Show class This class models a movie show. It simply captures the four required values for an object. A sh description of the struct members is given below: ields: Il the fields are private. 1. Price - this field is a double representing the price of admission to this show. 2. day Enum_ - this field is an enum representing the day of the week of this show. 3. movie - this field is an object reference of the movie class. 4. time - this field is an object of the Time class representing the time of this show. onstructor: 1. Show(Movie movie, Time time, DayEnum dayEnum, double price) - This is the public constructor that takes four arguments and assigns them to the appropriate fields. Methods: 1. 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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 31st International Conference Dexa 2020 Bratislava Slovakia September 14 17 2020 Proceedings Part 1 Lncs 12391

Authors: Sven Hartmann ,Josef Kung ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

303059002X, 978-3030590024

More Books

Students also viewed these Databases questions