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
Please discuss what you consider to be some of the biggest challenges your company will face when working from the Linux command
Nastasia [14]

Answer:

Command remembering issues.

Explanation:

The biggest challenge my company will face when working on Linux is remembering issues of the commands. The commands in Linux are a bit difficult to remember as they are complicated bit but practice can solve this issue. "Practice makes a man perfect" this well known saying suggests that practice can make perfect and this well known saying also works with Linux the more practice the employees do the more perfect they get.

3 0
3 years ago
What are spreadsheets in a excel workbook called? A. pages B. notepads C.graphs D.worksheets
galina1969 [7]
D. Worksheets
I’m positive this is the correct answer
4 0
3 years ago
Predictive coding software leverages .............................when experts review a subset of documents to teach the softwar
pantera1 [17]

Answer:

A.Human analysis, documents

Explanation:

Predictive coding in softwares is artificial intelligence that works by automating document review. This involves training software with data from "subset of documents" to be generally applied(apply same logic) to a larger group of documents. This is employed by a large group of technologists to ease the task of manually reviewing a huge set of documents.

7 0
3 years ago
Consider the university enrollment database schema: 547 Student(snurn: integer, snarne: string, majoT: string, level: string, ag
trapecia [35]

Enroll a student identified by her snum into the class named 'Introduction to Database Systems' is the following transactions, state the SQL isolation level you would use.

1. Enroll a student identified by her snum into the class named 'Introduction to Database Systems'.

<u>Explanation:</u>

Since enroll is unique in the university enrollment database schema and field name is SNUM and it is data type is an integer. To identify student class name and department name and name of student SNUM field is used for searching in university enrollment database schema. Enrollment changing is not possible of the student’s not possible or not good practices in university enrollment database schema.

If a query had been made class wise or department wise enrollment is played an important role.

For  assign, a faculty is made on the class id or  department id.

8 0
3 years ago
Help me please I dont have enough points for people just to get these for free
Gekata [30.6K]

Answer:

help me please I dont have enough points for people just to get these for free

Sam is a movie director. He has asked his storyboard artist to create an image of the central character looking ecstatic after receiving an award. What type of shot does the director need from the storyboard artist?

A. long shot

B. point of view shot

C. reaction shot

D. jump cut​

A is the asnwer

3 0
2 years ago
Other questions:
  • Cloud Kicks is undergoing a GDPR-focused implementation to ensure access to personal information data is limited to only users w
    7·1 answer
  • Assume you have just started a new job, have a car loan, and have a student loan. You have just received a cash gift of $1,000 f
    14·1 answer
  • True or False: clicking ads and pop-ups like the one below could expose your computer to malware.
    11·2 answers
  • A technician is training a new hire on sealing an RJ-45 connector to the end of an Ethernet cable. Which tool is the technician
    12·1 answer
  • You specify the shape of an oval in a Java applet by defining the oval's:__________.
    5·1 answer
  • Brainly app won't let me watch ads anymore. I search my question and there is no skip button to watch an ad it only makes me buy
    7·2 answers
  • In Python, what does this command do:<br>print ("\n")​
    8·1 answer
  • What's the smallest part of a computer
    8·2 answers
  • चार फरक छुट्याउनुहोस् ।) 3. Write down any four provisions of cyber ethic साइबर नैतिकताका कुनै चार प्रावधानहरु लेख्नुहोस् ।​
    11·1 answer
  • This computer is used by touching your finger.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!