Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- #include <string>
- #include <fstream>
- using namespace std;
- //Constants for hotels
- const int AFFORDABLE = 20;
- const int DELUXE = 30;
- const int LUXURY = 50;
- const int SUITE = 90;
- //We start asking for user information
- void userInfo();
- void hotelInfo();
- int mainMenu();
- int totalRoom(double, double, double, double);
- int roomServiceCost(double, double, double, double, double);
- double affordable();
- double deluxe();
- double luxury();
- double suite();
- double affordableRoomCost(double);
- double deluxeRoomCost(double);
- double luxuryRoomCost(double);
- double suitesCost(double);
- void displayCost(double, double, double, double, double, double);
- int main ()
- {
- //Open file
- ofstream outFile;
- outFile.open("billingInfo.txt");
- //Go to userInfo Function to find personal info
- userInfo();
- //Validators, yes or no questions
- char extraRoomChoice, validator;
- //Variables for each of the rooms
- double affordableRooms = 0, deluxeRooms = 0, luxuryRooms = 0, suites = 0;
- //variable for what room they plan on checking out for the menu
- int choiceRoom;
- //Variable to find out total room
- double totalRooms;
- do
- {
- choiceRoom = mainMenu();
- //Switch Statement for the menu
- switch(choiceRoom)
- {
- //When user selects 0 they move on
- case 0:
- break;
- //If the user selects 1 it goes to affordable rooms so the user can put how many rooms they choose to have
- case 1:
- affordableRooms = affordable();
- break;
- //If the user selects 2 it goes to deluxe rooms
- case 2:
- deluxeRooms = deluxe();
- break;
- //If the user selects 3 it does this
- case 3:
- luxuryRooms = luxury();
- break;
- //If the user selects 4 this is what it does
- case 4:
- suites = suite();
- break;
- //If the user cannot picka number from 0 - 4 it displays an error messaage
- default:
- system("clear");
- cout << "Error please choose a number from 0-4!";
- }
- //It continues the menu until the user selects 0
- }while(choiceRoom != 0);
- //Equation for total rooms
- totalRooms = totalRoom(affordableRooms, deluxeRooms, luxuryRooms, suites);
- //Going to ask if they would like to get an extra room so they can get room service half off
- if (totalRooms == 4)
- {
- cout << "Would you like to check out an extra room to get room service half off? (Y/N)";
- cin >> extraRoomChoice;
- //If they put yes they get to decide what room
- if (extraRoomChoice == 'y' || extraRoomChoice == 'Y')
- {
- cout << "We are only going to add one room of your choice, please choose." << endl;
- cout << "1. Affordable room" << endl;
- cout << "2. Deluxe room" << endl;
- cout << "3. Luxury room" << endl;
- cout << "4. Suites" << endl;
- cin >> choiceRoom;
- switch(choiceRoom)
- {
- //choice one is for affordable rooms
- case 1:
- cout << "Okay One room has been added to affordable rooms" << endl;
- affordableRooms += 1;
- break;
- //Choice 2 is for deluxe rooms
- case 2:
- cout << "Okay one room has been added to deluxe rooms" << endl;
- deluxeRooms += 1;
- break;
- //choice 3 is for luxury rooms
- case 3:
- cout << "Okay one room has been added to luxury rooms" << endl;
- luxuryRooms += 1;
- break;
- //choice 4 is for suites
- case 4:
- cout << "Okay one room has been added to Suites" << endl;
- suites += 1;
- break;
- //If they fail to choose a number from 1-4 they lose out on the discount
- default:
- cout << "Error, No room has been added to your account" << endl;
- break;
- }
- }
- }
- //Its the same as above except only now if they have 9 rooms they have an oppurtunity to get free room service
- if (totalRooms == 9)
- {
- cout << "Would you like to check out an extra room for free room service? (Y/N)";
- cin >> extraRoomChoice;
- if (extraRoomChoice == 'y' || extraRoomChoice == 'Y')
- {
- cout << "We are only going to add one room of your choice, please choose." << endl;
- cout << "1. Affordable room" << endl;
- cout << "2. Deluxe room" << endl;
- cout << "3. Luxury room" << endl;
- cout << "4. Suites" << endl;
- cin >> choiceRoom;
- switch(choiceRoom)
- {
- case 1:
- cout << "Okay One room has been added to affordable rooms" << endl;
- affordableRooms += 1;
- break;
- case 2:
- cout << "Okay one room has been added to deluxe rooms" << endl;
- deluxeRooms += 1;
- break;
- case 3:
- cout << "Okay one room has been added to luxury rooms" << endl;
- luxuryRooms += 1;
- break;
- case 4:
- cout << "Okay one room has been added to Suites" << endl;
- suites += 1;
- break;
- default:
- cout << "Error no room has been added to your account" << endl;
- break;
- }
- }
- }
- system("clear");
- //total rooms calculation
- totalRooms = totalRoom(affordableRooms, deluxeRooms, luxuryRooms, suites);
- //Validator to check if the information they inputted was correct
- cout << "Please validate this information: " << endl << endl;
- cout << "Affordable rooms: " << affordableRooms << endl;
- cout << "Deluxe rooms: " << deluxeRooms << endl;
- cout << "Luxury rooms: " << luxuryRooms << endl;
- cout << "Suites: " << suites << endl << endl;
- cout << "Total Rooms: " << totalRooms << endl;
- cout << "Is this informtaion correct? (Y/N)" ;
- cin >> validator;
- //If statements for the validator.
- //If they put a y it moves on
- if (validator == 'y' || validator == 'Y')
- {
- cout << "Okay lets continue!" << endl << endl;
- }
- //If they put an n it ask the statement again so they cna fix it
- if (validator == 'n' || validator == 'N')
- {
- //It keeps doing this if they keep selecting no
- while (validator == 'n' || validator == 'N')
- {
- do
- {
- mainMenu();
- //Switch statement for the menu and display something according to what the user selects
- switch(choiceRoom)
- {
- case 0:
- break;
- case 1:
- //opening the affordable function and storing whatever it returns into the affordable rooms
- affordableRooms = affordable();
- break;
- case 2:
- //Opening the deluxe function
- deluxeRooms = deluxe();
- break;
- case 3:
- //opening the luxury function
- luxuryRooms = luxury();
- break;
- case 4:
- //opening the suite function
- suites = suite();
- break;
- default:
- //if user fails to enter a number from 0-4 they get this error message
- cout << "Error please choose a number from 0-4!";
- }
- }while (choiceRoom != 0);
- //Equation for totalRoom
- totalRooms = totalRoom(affordableRooms, deluxeRooms, luxuryRooms, suites);
- //asking user if they would like to check out an extra room since they are close to getting room service half off
- if (totalRooms = 4)
- {
- cout << "Would you like to check out an extra room to get room service half off? (Y/N)";
- cin >> extraRoomChoice;
- //if they choose yes we had an extra room depending on what they choose
- if (extraRoomChoice == 'y' || extraRoomChoice == 'Y')
- {
- cout << "We are only going to add one room of your choice, please choose." << endl;
- cout << "1. Affordable room" << endl;
- cout << "2. Deluxe room" << endl;
- cout << "3. Luxury room" << endl;
- cout << "4. Suites" << endl;
- cin >> choiceRoom;
- switch(choiceRoom)
- {
- case 1:
- //we add an affordable if they choose one
- cout << "Okay One room has been added to affordable rooms" << endl;
- affordableRooms += 1;
- break;
- case 2:
- //we add an deluxe of they choose 2
- cout << "Okay one room has been added to deluxe rooms" << endl;
- deluxeRooms += 1;
- break;
- case 3:
- // we add a luxury if they choose 3
- cout << "Okay one room has been added to luxury rooms" << endl;
- luxuryRooms += 1;
- break;
- case 4:
- // we add a suite if they choose 4
- cout << "Okay one room has been added to Suites" << endl;
- suites += 1;
- break;
- default:
- //if they fail to choose a number from 1-4 they miss the oppurtunity for room service
- cout << "Error, No room has been added to your account" << endl;
- break;
- }
- }
- }
- //same as the 4 room one except you get room service for free if you check out 10 rooms
- if (totalRooms = 9)
- {
- cout << "Would you like to check out an extra room for free room service? (Y/N)";
- cin >> extraRoomChoice;
- if (extraRoomChoice == 'y' || extraRoomChoice == 'Y')
- {
- cout << "We are only going to add one room of your choice, please choose." << endl;
- cout << "1. Affordable room" << endl;
- cout << "2. Deluxe room" << endl;
- cout << "3. Luxury room" << endl;
- cout << "4. Suites" << endl;
- cin >> choiceRoom;
- switch(choiceRoom)
- {
- case 1:
- cout << "Okay One room has been added to affordable rooms" << endl;
- affordableRooms += 1;
- break;
- case 2:
- cout << "Okay one room has been added to deluxe rooms" << endl;
- deluxeRooms += 1;
- break;
- case 3:
- cout << "Okay one room has been added to luxury rooms" << endl;
- luxuryRooms += 1;
- break;
- case 4:
- cout << "Okay one room has been added to Suites" << endl;
- suites += 1;
- break;
- default:
- cout << "Error no room has been added to your account" << endl;
- break;
- }
- }
- }
- system("clear");
- //equation for totalRooms
- totalRooms = totalRoom(affordableRooms, deluxeRooms, luxuryRooms, suites);
- //Validator
- cout << "Please validate this information: " << endl << endl;
- cout << "Affordable rooms: " << affordableRooms << endl;
- cout << "Deluxe rooms: " << deluxeRooms << endl;
- cout << "Luxury rooms: " << luxuryRooms << endl;
- cout << "Suites: " << suites << endl << endl;
- cout << "Total Rooms: " << totalRooms << endl;
- cout << "Is this informtaion correct? (Y/N)" ;
- cin >> validator;
- }
- }
- //Inputting information to the outfile
- outFile << "\t\tUser Hotel informtaion" << endl;
- outFile << "-----------------------------------------------" << endl;
- outFile << "Affordable rooms: " << affordableRooms << endl;
- outFile << "Deluxe rooms: " << deluxeRooms << endl;
- outFile << "Luxury rooms: " << luxuryRooms << endl;
- outFile << "Suites: " << suites << endl << endl;
- outFile << "Total Rooms: " << totalRooms << endl;
- //Equation for room service
- double roomService;
- roomService = roomServiceCost(totalRooms, affordableRooms, deluxeRooms, luxuryRooms, suites);
- //Inputting information to the outfile
- outFile << "\t\tUser Hotel informtaion" << endl;
- outFile << "-----------------------------------------------" << endl;
- outFile << "Affordable rooms: " << affordableRooms << endl;
- outFile << "Deluxe rooms: " << deluxeRooms << endl;
- outFile << "Luxury rooms: " << luxuryRooms << endl;
- outFile << "Suites: " << suites << endl;
- outFile << "Room service cost: $" << roomService << endl;
- outFile << endl << "Total Rooms: " << totalRooms << endl;
- //Closing file
- outFile.close();
- //Variables to find out the total cost of each of the rooms
- double affordableCost, deluxeCost, luxuryCost, suiteCost, totalCost;
- //call the affordableroomcost function to get the affordable cost
- affordableCost = affordableRoomCost(affordableRooms);
- //call the deluxeroomcost function to get the deluxe cost
- deluxeCost = deluxeRoomCost(deluxeRooms);
- //call the luxuryROomCost function to get the luxury cost
- luxuryCost = luxuryRoomCost(luxuryRooms);
- //call the suitecost function to get the suite cost
- suiteCost = suitesCost(suites);
- //totalCOst equation which you add all the rooms
- totalCost = affordableCost + deluxeCost + luxuryCost + suiteCost + roomService;
- double discount;
- if (totalRooms >= 10)
- {
- //discount equation depending on how many rooms they pick out
- discount = totalCost / 2;
- totalCost -= discount;
- }
- //Total cost calculation if they have more than 5 rooms discount
- if(totalRooms >= 5 && totalRooms <= 9)
- {
- //discount equation depending on how many rooms they pick out
- discount = totalCost * .20;
- totalCost -= discount;
- }
- //calling the displayCost function
- displayCost(totalCost, affordableCost, deluxeCost, luxuryCost, suiteCost, roomService);
- return 0;
- }
- //the main menu function which displays the main menu
- int mainMenu()
- {
- //varible to see which room they choose
- int choiceRoom;
- //to make it look neat
- system("clear");
- //Menu for the user to select which room they would like to check out
- cout << "Which room would you like to check out? Press 0 once you are finished." << endl;
- cout << "1. Affordable room" << endl;
- cout << "2. Deluxe room" << endl;
- cout << "3. Luxury room" << endl;
- cout << "4. Suites" << endl;
- cin >> choiceRoom;
- return choiceRoom;
- }
- //function to find how many affordable rooms they plan on checking out
- double affordable()
- {
- double affordableRooms = 0;
- system("clear");
- cout << "How many affordable rooms would you like to check out? ";
- cin >> affordableRooms;
- while (affordableRooms < 0)
- {
- system("clear");
- cout << "Error you cannot insert a number less than 0!" << endl;
- cout << "Please try again!" << endl << endl;
- cout << "How many affordable rooms would you like to check out";
- cin >> affordableRooms;
- }
- return affordableRooms;
- }
- //function to find out how many deluxe rooms they plan on checking out
- double deluxe()
- {
- double deluxeRoom = 0;
- system("clear");
- cout << "How many deluxe rooms would you like to check out? ";
- cin >> deluxeRoom;
- //Validator so they cant put less than 0 rooms
- while (deluxeRoom < 0)
- {
- system("clear");
- cout << "Error you cannot insert a number less than 0!" << endl;
- cout << "Please try again!" << endl << endl;
- cout << "How many deluxe rooms would you like to check out? ";
- cin >> deluxeRoom;
- }
- return deluxeRoom;
- }
- //function to find out how many luxury rooms they plan on checking out
- double luxury()
- {
- double luxuryRooms = 0;
- system("clear");
- cout << "How many luxury rooms would you like to check out? ";
- cin >> luxuryRooms;
- //Validator so they cant put less than 0 rooms
- while (luxuryRooms < 0)
- {
- system("clear");
- cout << "Error you cannot insert a number less than 0!" << endl;
- cout << "Please try again!" << endl << endl;
- cout << "How many luxury rooms would you like to check out? ";
- cin >> luxuryRooms;
- }
- return luxuryRooms;
- }
- //function to find out how many suites the user plans on checking out
- double suite()
- {
- double suites = 0;
- system("clear");
- cout << "How many suite rooms would you like to check out? ";
- cin >> suites;
- //Validator so they cant put less than 0 rooms
- while (suites < 0)
- {
- system("clear");
- cout << "Error you cannot insert a number less than 0!" << endl;
- cout << "Please try again!" << endl << endl;
- cout << "How many suite rooms would you like to check out? ";
- cin >> suites;
- }
- return suites;
- }
- //function to find out the total rooms
- double totalRooms(double affordable, double deluxe, double luxury, double suite)
- {
- //equation to find out the total rooms
- double total = affordable + deluxe + luxury + suite;
- return total;
- }
- //funtion to find out the affordable room cost
- double affordableRoomCost(double affordableRooms)
- {
- double affordableCost;
- affordableCost = affordableRooms * AFFORDABLE;
- return affordableCost;
- }
- //same function as above but for deluxe rooms
- double deluxeRoomCost(double deluxeRooms)
- {
- double deluxeCost;
- deluxeCost = deluxeRooms * DELUXE;
- return deluxeCost;
- }
- //same function as above but for luxury rooms
- double luxuryRoomCost(double luxuryRooms)
- {
- double luxuryCost;
- luxuryCost = luxuryRooms * LUXURY;
- return luxuryCost;
- }
- //same function as above but for suites
- double suitesCost (double suites)
- {
- double suiteCost;
- suiteCost = suites * SUITE;
- return suiteCost;
- }
- //this is the final function which will display the cost and ask the user where he plans on paying
- void displayCost(double totalCost, double discount, double affordableRoomCost, double deluxeRoomCost, double luxuryRoomCost, double suitesCost,
- double roomService)
- {
- //THese are choices the user makes
- char payNowChoice, checkout, validator;
- //To store the card name and card number
- string cardName, cardNumber;
- //Here it displays the total cost of everything
- cout << "\t\tYour total cost" << endl;
- cout << "-----------------------------------------" << endl;
- cout << "Affordable rooms cost: $" << affordableRoomCost << endl;
- cout << "Deluxe room cost: $" << deluxeRoomCost << endl;
- cout << "Luxury room cost: $" << luxuryRoomCost << endl;
- cout << "Suites cost: $" << suitesCost << endl;
- cout << "Room Serivce cost: $" << roomService << endl;
- cout << "Discount: $-" << discount << endl;
- cout << "Total cost: $" << totalCost << endl << endl;
- //Asking the user if they would like to go and checkout
- cout << "Would you like to continue to checkout? (Y/N)";
- cin >> checkout;
- //If they do wish to check out now it will display that
- if (checkout == 'y' || checkout == 'Y')
- {
- cout << "Would you like to pay now?(Y/N)" << endl;
- cin >> payNowChoice;
- if (payNowChoice == 'y' || payNowChoice == 'Y')
- {
- do
- {
- cout << "Please enter the name on the card" << endl;
- cin >> cardName;
- cout << endl << endl;
- cout << "Please enter the card number" << endl;
- cin >> cardNumber;
- cout << endl << endl;
- system("clear");
- cout << "Please check if the information below is correct (Y/N)" << endl;
- cout << "Name on the card: " << cardName << endl;
- cout << "Card number: " << cardNumber << endl;
- cin >> validator;
- }while(validator != 'y' || validator != 'Y');
- }
- //IF they choose to pay once they arrive
- else
- {
- cout << "Okay we will charge you once you arrive" << endl;
- cout << "When you arrive remeber the account is under your name so we can easily" << endl;
- cout << "help you.";
- }
- cout << "Thank you for shopping at Tipton Hotels its been a pleasure serving you!" << endl;
- }
- //if they do not wish to checkout
- if (checkout == 'n' || checkout == 'N')
- {
- cout << "Okay until next time!";
- }
- }
- //the very first function
- void userInfo()
- {
- //Opening output file to have user information saved so we can
- //recover his account and or sent him his information to his email
- //or send the user the receipt to his email
- ofstream outFile;
- outFile.open("userInfo.txt");
- //Variables for user information
- string fName, lName, email;
- int age;
- //Validator if the user info is correct
- char userInfoValidator;
- //Variable for decision of welcome message
- char welcomeContinue;
- //Welcome message output
- system("clear");
- cout << "Hello welcome to Tipton Hotels, would you like to check out a room? (Y/N) ";
- cin >> welcomeContinue;
- cout << endl;
- //Validator if they wish to check out a room
- if (welcomeContinue == 'y' || welcomeContinue == 'Y')
- {
- }
- else if (welcomeContinue == 'n' || welcomeContinue == 'N')
- {
- cout << "Okay Goodbye!!!";
- return;
- }
- else
- {
- cout << "Error please try again!" << endl;
- }
- //Output
- cout << "Before we start, please enter your age: ";
- cin >> age;
- cout << endl;
- //validator if the user is less than the age of 18 he cant use this program
- if (age < 18)
- {
- cout << "Sorry your to young to check out a room. ";
- return;
- }
- //asking for the user first name
- cout << "What is your first name? ";
- cin >> fName;
- cout << endl;
- //asking for the user last name
- cout << "Whatis your last name? ";
- cin >> lName;
- cout << endl;
- //asking for the user email address
- cout << "Okay, "<< fName << " what is your email address? ";
- cin >> email;
- cout << endl;
- system("clear");
- //Asking for user validation
- cout << "I am going to need you to validate this information." << endl;
- cout << "Is this Information below correct? (Y/N)" << endl;
- cout << "First Name: " << fName << endl;
- cout << "Last Name: " << lName << endl;
- cout << "Age: " << age << endl;
- cout << "Email: " << email << endl;
- cin >> userInfoValidator;
- //Validator
- if (userInfoValidator == 'y' || userInfoValidator == 'Y')
- {
- //if the information is correct then we save it into an output file
- outFile << "First Name: " << fName << endl;
- outFile << "Last Name: " << lName << endl;
- outFile << "Email: " << email << endl;
- hotelInfo();
- }
- //if they choose no they have to start the function again
- if (userInfoValidator == 'n' || userInfoValidator == 'N')
- {
- while(userInfoValidator == 'n' || userInfoValidator == 'N')
- {
- //if it isnt correct we do this again till it is corret
- system("clear");
- cout << "Okay lets start again what is your first name? ";
- cin >> fName;
- cout << endl;
- cout << "What is your last name? ";
- cin >> lName;
- cout << endl;
- cout << "Okay, "<< fName << " what is your email address? ";
- cin >> email;
- cout << endl;
- system("clear");
- cout << "I am going to need you to validate this information. " << endl;
- cout << "Is this Information below correct? (Y/N)" << endl;
- cout << "First Name: " << fName << endl;
- cout << "Last Name: " << lName << endl;
- cout << "Email: " << email << endl;
- cin >> userInfoValidator;
- }
- //storing the information into the outfile
- outFile << "First Name: " << fName << endl;
- outFile << "Last Name: " << lName << endl;
- outFile << "Email: " << email << endl;
- hotelInfo();
- }
- //Closing the output file stream
- outFile.close();
- }
- void hotelInfo()
- {
- //Variables
- int infoRoom; // variable for the choice the user decides to find info about 1
- string cont;
- system("clear");
- cout << "Okay lets continue!" << endl << endl;
- //Making a menu for the user to find out more information about each room
- do
- {
- system("clear");
- cout << "Which room would you like to know more information about? Press 0 once your";
- cout << " finished: " << endl;
- cout << "1. Affordable room" << endl;
- cout << "2. Deluxe room" << endl;
- cout << "3. Luxury room" << endl;
- cout << "4. Suites" << endl;
- cin >> infoRoom;
- switch(infoRoom)
- {
- //Case 0 is to end the menu so the user can move on
- case 0:
- cout << "Okay lets move on!";
- cout << endl << endl;
- //Calling the main function
- main();
- break;
- //case 1 shows information for the affordable room
- case 1:
- system("clear");
- cout << "\t\t\tThe Affordable Room" << endl;
- cout << "------------------------------------------------------------------------------" << endl;
- cout << "The affordable room cost a night is: $" << AFFORDABLE << endl;
- cout << "And if you are interested in unlimited room service it is $40 dollars per room" << endl;
- cout << "and its for your whole stay!" << endl;
- cout << "The room contains one twin size bed, a TV, along side free wifi, and your" << endl;
- cout << "own restroom" << endl << endl;
- cout << "Every room contains free wifi, speed depends on what room you check out," << endl;
- cout << "Call 956-999-9999, for more information.";
- cout << endl << endl << "Also anyone who stays in the Tipton Hotel";
- cout << "has a gym inside for them to use," << endl << "and we offer free breakfast" << endl << endl;
- cout << "Enter any key to continue. ";
- cin >> cont;
- break;
- //case 2 shows information for the deluxe room
- case 2:
- system("clear");
- cout << "\t\t\tThe Deluxe Room" << endl;
- cout << "--------------------------------------------------------------------------------" << endl;
- cout << "The Deluxe room cost a night is: $" << DELUXE << endl;
- cout << "And if you are interested in unlimited room service it is $35 dollars per room" << endl;
- cout << "and its for your whole stay!" << endl;
- cout << "The room contains one queen size bed, a flat screen TV, and your own";
- cout << " restroom" << endl << endl;
- cout << "Every room contains free wifi, speed depends on what room you check out," << endl;
- cout << "Call 956-999-9999, for more information." << endl << endl;
- cout << "Also anyone who stays in the Tipton Hotel";
- cout << " has a gym inside for them to use," << endl << " and we offer free breakfast." << endl << endl;
- cout << "Enter any key to continue. ";
- cin >> cont;
- break;
- //case 3 shows information for the Luxury room
- case 3:
- system("clear");
- cout << "\t\tThe Luxury Room" << endl;
- cout << "--------------------------------------------------------------------------------" << endl;
- cout << " The Luxury room cost a night is: $" << LUXURY << endl;
- cout << "And if you are interested in unlimited room service it is $20 dollars per room" << endl;
- cout << "and its for your whole stay!" << endl;
- cout << "The room contains one King size bed, a 55 inch flat screen TV, and your";
- cout << " own" << endl << "restroom" << endl << endl;
- cout << "Every room contains free wifi, speed depends on what room you check out," << endl;
- cout << "Call 956-999-9999, for more information." << endl << endl;
- cout << "Also anyone who stays in the Tipton Hotel";
- cout << " has a gym inside for them to use," << endl << " and we offer free breakfast." << endl << endl;
- cout << "Enter any key to continue. ";
- cin >> cont;
- break;
- //Case 4 shows information for the suites
- case 4:
- system("clear");
- cout << "\t\tThe Suite Room" << endl;
- cout << "---------------------------------------------------------------------------------" << endl;
- cout << "The Suite room cost a night is: $" << LUXURY << endl;
- cout << "Room service is completly free and is only available to the Suites";
- cout << " and its for" << endl << "your whole stay" << endl;
- cout << "The room contains two King size bed, three 60 inch flat screen TV for";
- cout << " each room" << endl << "that can display 4K, and two restroom for each room";
- cout << endl << endl;
- cout << "Every room contains free wifi, speed depends on what room you check out," << endl;
- cout << "Call 956-999-9999, for more information." << endl << endl;
- cout << "Also anyone who stays in the Tipton Hotel";
- cout << " has a gym inside for them to use," << endl << "and we offer free breakfast." << endl << endl;
- cout << "Enter any key to continue. ";
- cin >> cont;
- break;
- //If the user failes to select a number from 0-4 it display an error message and they try again
- default:
- cout << "Error! not a possible selection!";
- break;
- }
- }while(infoRoom != 0);
- main();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement