Course Solutions Uncategorized (Solved) : Add File Operations Keep Records Table Numbers Names People Reserve Tables Private Rooms A Q31311459 . . . .

(Solved) : Add File Operations Keep Records Table Numbers Names People Reserve Tables Private Rooms A Q31311459 . . . .

 

How do i add file operations to keep records of the the tablenumbers and names of people who reserve the tables/private roomsaccording to days in a week(monday to sunday) ?

Code:

#include<iostream>

#include<string>

using namespace std;

int mainMenu();

int tableMenu();

int privateRoom();

int main()

{

string table[20];

int ch;

int n;

string m

for(int i = 0 ; i < 20 ; i++)

table[i] = “AVAILABLE”;

do{

int choice1,choice2,choice3;

bool cont=true;

while(true)

{

cout<<“nMain menu “<<endl;

a:

choice1=mainMenu();

switch (choice1)

{

case 1:

cont=true;

while (cont)

{

cout<<“nYou are in Table reservationmenu”<<endl;

choice2=tableMenu();

switch (choice2)

{

case 1:

cout<<“nYou are in View reservation “<<endl;

cout<<“Enter table number: “;

cin>>n;

if(table[n] == “AVAILABLE”)

{

cout<<“Table is Availablen “;  

}

else

{

table[n] = “NOT AVAILABLE”;

cout<<“Not availablen”;

}

break;

case 2:

cout<<“nYou are in Table reservationmenu”<<endl;

cout<<“Enter Which Table You want to reserve: “;

cin>>n;

if(table[n] == “AVAILABLE”)

{

cout<<“Table is AVAILABLE, please enter your

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post