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]
3 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]3 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
What are some of the general components of an IDE?
AysviL [449]

Answer:

An IDE normally consists of a source e editor, build automation tools. Most modern IDEs have intelligent code completion. Some IDEs contain a compiler, interpreter, or both.

5 0
3 years ago
A form of brainstorming that serves as a visual aid to thinking laterally, helps explore a problem (usually by stating the probl
ELEN [110]

Answer:

The answer is BRAINSTORMING

Explanation:

<em>A visual aid to thinking laterally and exploring a problem, usually by stating the problem in the center  of the page and radiating outward spokes for components of the problem. Each component can then be considered separately with its own spokes, so that each point , thought, or comment is recorded.</em>

7 0
3 years ago
STATE THE MODULES THAT ARE INCLUDED WHEN LEARNING CALCULUS.
Rzqust [24]

Answer:

Calculus is a branch of mathematics focused on limits, functions, derivatives, integrals, and infinite series. ... Calculus has widespread applications in science, economics, and engineering and can solve many problems for which algebra alone is insufficient.

7 0
2 years ago
List and briefly describe passive and active security attacks.
Rama09 [41]

Answer:

Passive security attack are the unauthorized disclosure in the network attack. In this type of security attack a system are use for monitoring and sometimes scanning the open port. It basically include the monitoring the unprotected data and traffic analysis.

On the other hand, active security system modify the transmitted data and gain the unauthorized access from the computer system.

This type of security attack basically monitor the file transfer and electronic mail from the attacks which can be pass in the form of viruses in the computer system.

4 0
3 years ago
If an app needs to perform a derived-class-specific operation on a derived class object reference by a base class variable, the
dalvyx [7]

Answer:

Downcasting

Explanation:

Downcasting is a way of determining whether a given object is of a particular subclass type. In object-oriented programming downcasting is used to cast an object to a subtype. Even though sometimes it throws a compile-time error in Java, downcasting can be done on languages like Java, C++, C#. The opposite of downcasting is upcasting, which is simply the casting of an object to supertype or parent type.

7 0
3 years ago
Other questions:
  • What is a multipurpose network device?
    12·1 answer
  • What are examples of people who own the copyrights of their property? Check all that apply.
    10·2 answers
  • Which of the following jobs is considered part of the information technology industry?
    15·2 answers
  • What will be displayed as a result of executing the following code?
    5·1 answer
  • You are asked to design a system of FP numbers representation (with your own design choices), labeled Custom_FP_48, for which we
    8·1 answer
  • Halp Computer Science
    12·2 answers
  • Write a program that will predict the size of a population of organisms. The program should ask the user for the starting number
    8·1 answer
  • 32.
    9·1 answer
  • Computer science - algorithms - flowcharts
    11·1 answer
  • What causes the hidden node problem in a wireless local area network (wlan)?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!