Task 1: Implement the constructor for the Hostess struct. It must initialize all member variables, including any arrays....

60.1K

Verified Solution

Question

Programming

Task 1:

Implement theconstructor for the Hostess struct. It mustinitialize all member variables, including any arrays. There isanother function that performs initialization. You must change theprogram so that the object’s initialization is done automatically,i.e. no explicit call is needed for an initialization function.

#ifndef HOSTESS_H#define HOSTESS_H#include \"Table.h\"#include struct Hostess{  void Init();  void PlaceArrivalInQueue(int arrivals);  void ShiftLeft();  void Print(int hour, int minute, int arrivals);  int GetNumTables(){return numTables;}  int Seat(int table, int time);  int CheckAvail();  int totalServed;  int currentCustomers;  int queue_size;  int numTables;  Table tables[30];  int queue[15];};#endif // HOSTESS_H

Answer & Explanation Solved by verified expert
4.1 Ratings (813 Votes)
ifndef HOSTESSH define HOSTESSH include Tableh include struct Hostess void Init void PlaceArrivalInQueueint arrivals void    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students