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
Can someone help me with this please
alex41 [277]

Answer:

D

Explanation:

Filters and the Sort feature can be applied in any order. 

4 0
2 years ago
What is input process<br>​
riadik2000 [5.3K]

Answer:

describing the structure of an information processing program or another process. Many introductory programming and systems analysis texts introduce this as the most basic structure for describing a process.

Explanation:

  • A requirement from the environment (input)
  • A computation based on the requirement (process)
  • A provision for the environment (output)

Example: A small engineering firm believes there are problems with its hiring process. Several of the junior engineers that have been hired remained at the firm for less than one year. This is a considerable cost to the firm, since recruiting and training new engineers is time consuming and expensive. The human resources manager decides to put together a group of people with extensive experience hiring new engineers. One of their first tasks is to produce an input-output model of the hiring process. They generate the following.

4 0
3 years ago
____________________ sites are remote servers accessible with a browser that contain common collections of diagnostic tools such
Sergio [31]

Answer:

Looking glass

Explanation:

_____ sites are remote servers accessible with a browser that contain common collections of diagnostic tools such as ping and traceroute, plus some Border Gateway Protocol (BGP) query tools.

Looking glass

6 0
2 years ago
_____ is the physical link between a network and a workstation. a. The session layer b. An html address c. An adapter card d. A
AveGali [126]

Answer:

(d) Network topology

Explanation:

The physical or logical layout of all connecting devices including their connecting materials (such as cables) of a network is called the topology of the network. It is also the systematic and schematic arrangement of the devices (such as printers, scanners, computers, routers, bridges) that make up a network and their communication media. Examples of these communication media are twisted pair cable, optical fiber cable e.t.c

Types of topology (especially in a LAN - Local Network Area) are;

i. bus topology

ii. ring topology

iii. mesh topology

iv. star topology

4 0
3 years ago
Read 2 more answers
Joe, a user, has purchased a new mobile device that uses a different OS than his previous one. Joe wants to copy his contacts an
Oliga [24]

Answer:

C

Explanation:

Joe should backup all his data from his old mobile device to his PC and then import all the data to his new device via PC. This is the fastest way for transferring data than all the other options mentioned. Most of the time the devices with different OS cannot connect via Bluetooth so option B is not suitable here. If we talk about logging in to same email provider on the new device, it might work but it'll take a lot of time to transfer data to a new device since the data is been copied through internet. If Joe has a strong internet connection than it might be a suitable option for him but what if the connections breaks down in middle of transfer? Similarly NFC also uses internet connection, but that's not only the problem with NFC, like Bluetooth, NFC also works with similar OS devices. Apart from that NFC only transfers small payloads of data.

4 0
4 years ago
Other questions:
  • Help PLEASE (in attachment)
    8·1 answer
  • One item you will NOT need to provide when opening up a bank account
    9·2 answers
  • Aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    9·2 answers
  • Many networks are set up using a hierarchical architecture to create a "backbone" network. In this system, several connected rou
    12·1 answer
  • What the five types of initiatives that are necessary when putting together and implementing an IT strategy
    9·1 answer
  • What happens when an arithmetic operator is applied to non-arithmetic data types such as Boolean or character
    7·1 answer
  • 14 POINTS AND WILL ASWER BRAINIEST ANSWER ASAP TEST
    15·2 answers
  • What line of code makes the character pointer studentPointer point to the character variable userStudent?char userStudent = 'S';
    5·1 answer
  • Using a custom animation effect, how do you make text appear on a slide letter by letter?
    9·1 answer
  • Jorge, a sports statistician for soccer, has kept track of how many shots-on-goal each player on a team made in each game. This
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!