1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
FinnZ [79.3K]
2 years ago
7

Write the header file Stadium.h for a Stadium class. The Stadium class has the following data members: 1) an array of 1000 Seat

objects. 2) stadium name and 3) the number of occupied seats. The Seat is represented as a struct in a seat.h file. The Seat structure has the following data members: 1) Seat Number 2) Customer Full Name and 3) Seat Cost. In addition, provide the following member function prototypes for the Stadium class: Stadium Constuctor: string stadiumName parameter. assignSeat(...): double seatNumber and string customerName parameters, returns nothing unAssignedSeat(...): integer seatNumber parameter, returns nothing getNumberOfAssignedSeats() : no parameters and returns the number of assigned seats. getCostOfSeat(...): double seatNumber parameter and returns the cost of the seat Do not provide the implementation of the member functions.
Computers and Technology
1 answer:
irakobra [83]2 years ago
4 0

Answer:

Check the explanation

Explanation:

File: Seat.h:

typedef struct Seat

{

  int seatNumber;

  string customerFullName;

  double seatCost;

};

File: Stadium.h

class Stadium

{

  //Data Members

  private:

      Seat seats[1000];

      string stadiumName;

      int numOccupiedSeats;

 

  public:

      Stadium(string); //Constructor

      void assignSeat(double, string);

      void unAssignedSeat(int seatNumber);

      int getNumberOfAssignedSeats();

      double getCostOfSeat(double seatNumber);

}

You might be interested in
How does Python recognize a tuple?
Talja [164]

Answer:

B) You use parentheses around the data values

Explanation:

It was C) on my end, but the answer is still the same :)

7 0
3 years ago
Read 2 more answers
CAD software is used to_____. / create a printed document to send through a fax machine / enhance a photograph / design a buildi
Umnica [9.8K]
CAD software is used to design a building.
4 0
2 years ago
Read 2 more answers
Dwayne Alexander is working on a project promoting a fictitious product for his marketing class. He wants to use animation to sh
erastova [34]

The following are examples of animation apps:

  • Toon Boom Animation (2-D)
  • Prisma3D (3-D) and
  • AnimeTok (3-D)

<h3>What are the Pros and the cons of each app listed above?</h3>

Toon Boom Animation Pros:

  • It has a great set of tools
  • It has camera angles functionality
  • Has a vector drawing tool

Cons:

  • It is expensive.

Prisma3D (3-D) Pros:

  • It is good for modeling;
  • Easy to use interface

Cons:

  • It has too many bugs.
  • lacks sculpting tools

AnimeTok (3-D) Pros:

  • It makes it easy to move the characters easily
  • It is easy to understand

Cons:

  • It has too many ads
  • does not have an undo and redo button

Learn more about Animation Apps at:
brainly.com/question/7279789

6 0
2 years ago
Why do we have to watch a video to get answers?
IRINA_888 [86]

Answer:

The videos contain the answers.

Explanation:

4 0
2 years ago
Read 2 more answers
Which were important characteristics of Sparta's government? Select the two correct answers. A. Oligarchs were able to hold a lo
Cerrena [4.2K]

Answer:

Sparta's government was a combination of a monarchy, a democracy, and an oligarchy. and oligarchs were able to hold a lot of power in government.

Explanation:

Spartans government loved to have power more than anyone in their century.

4 0
3 years ago
Read 2 more answers
Other questions:
  • Jake is photographing his pet puppy. He wants to preview the image the camera will capture. What part of the camera that is insi
    6·2 answers
  • Henry is studying the effects of deforestation along the slopes of hills and mountains. He wants to take a photo of a mountain s
    14·1 answer
  • Please write a Java program.
    8·1 answer
  • Drugs of addiction act upon a portion of the Brain called the lambic system ? True or false.
    7·1 answer
  • What cannot be performed using windows task manager
    10·1 answer
  • Sales representatives want to capture custom feedback record details related to each Account. The sales reps want to accomplish
    12·1 answer
  • What would a digitizing application create?
    13·2 answers
  • Jenn wants to assign a value to the favorite car variable: favoriteCar = Toyota but gets an error message. What does she need to
    11·1 answer
  • Consider our authentication protocol 4.0, in which Alice authenticates herself to Bob, which we saw works well (i.e., we found n
    15·1 answer
  • In a print statement, you can set the __________ argument to a space or empty string to stop the output from advancing to a new
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!