Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ Implement a constructor for the Movie struct in movie.cpp. Movie.h has been provided. movie.h # #ifndef MOVIE_H #define MOVIE_H #include #include using namespace std;

C++

Implement a constructor for the Movie struct in movie.cpp. Movie.h has been provided.

movie.h

#

#ifndef MOVIE_H
#define MOVIE_H
#include
#include

using namespace std;

struct Movie{

Movie();
string title;
double runTime;
int expectedYield;
char roomID;
int capacity;
int available;
};

#endif // MOVIE_H

The Movie struct has the following membervariables:

  1. string title: title of the movie, no spaces allowed
  2. doubleruntime: how long the movie lasts in minutes
  3. int expectedYield: Possible values (2,1,0)which correspond to (high, medium, low)
  4. char roomID: ID of the room movie is playing in. Possible values: A, B, C, D,etc.
  5. int capacity: How many viewers can fit in room.
  6. int available: How many available for purchase still remain.

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

Step: 3

blur-text-image

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

Design Operation And Evaluation Of Mobile Communications

Authors: Gavriel Salvendy ,June Wei

1st Edition

3030770249, 978-3030770242

Students also viewed these Programming questions

Question

What is a manufacturing system?

Answered: 1 week ago