Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <time.h>
- #include <cstdlib>
- #include <random>
- #include <cmath>
- using namespace std;
- /* The "credit card info" is FAKE AND MADEUP!!!!! If, for whatever reason, you see that the final 4 numbers of each card matches yours, IT'S PURLEY COINCIDENTIAL!!!!!!
- If/when you enter the normal credit card/personal info (name, expiration date, #, etc.) for the game, it WILL NOT be stored!
- All names used are affiliated with the NFL
- Bitcoin Wallet: 18gYWxF5BjDXGhh4vp2nhHxqrK4G3aS5je
- */
- float suitePrice= 253.95, normalPrice= 100, numOfNights, creditCardNumber;
- int hotelChoice, a;
- string firstName, surname, dateOfExpiration, option, a1;
- char finalInput;
- void customerInfo();
- int main()
- {
- int input, n, password, info;
- do
- {
- cout << "******************** WELCOME ********************\n\n\n\nAre you a Customer or Employee? (1/2)\n";
- cin >> input;
- switch(input)
- {
- case 1:
- customerInfo();
- break;
- case 2:
- do
- {
- cout << "Enter the password to continue: ";
- cin >> password;
- cout << endl;
- switch(password)
- {
- case 382602:
- do{
- cout << "\nWelcome back!\n\nGuest List:\n\n1) Brian Mitchell\n2) Donavan McNabb\n3) Jerry Jones\n4) Duce Stanley\n5) Roger Goodell\n6) Tom *GOAT* Brady\n7) Eli Manning\n8) Odell Beckham Jr.\n9) Joe Buck\n10) Andy Dalton\n11) Danny Amendola\n12) Jared Goff\n13) Todd Gurley III\n14) Ladainian Tomlinson\n\nWho's info would you like to see?\n";
- cin >> info;
- cout << endl << endl << endl << endl << endl << endl << endl;
- switch(info){
- case 1:
- cout << "Name: Brian Mitchell \n\nDate of checkin: 3/3/19\n\nCredit Card #: **** **** **** 2865\n\nRoom #: 100\n\n";
- break;
- case 2:
- cout << "Name: Donovan McNabb \n\nDate of checkin: 3/4/19 \n\nCredit Card #: **** **** **** 4329 \n\nRoom #: 101 \n\n";
- break;
- case 3:
- cout << "Name: Jerry Jones\n\nDate of checkin: 2/10/19\n\nCredit Card #: **** **** **** 1488\n\nRoom #: 221\n\n";
- break;
- case 4:
- cout << "Name: Duce Stanley \n\nDate of checkin: 3/9/19 \n\nCredit Card #: **** **** **** 2710 \n\nRoom #: 137 \n\n";
- break;
- case 5:
- cout << "Name: Roger Goodell \n\nDate of checkin: 4/1/19 \n\nCredit Card #: **** **** **** 1984 \n\nRoom #: 320 \n\n";
- break;
- case 6:
- cout << "Name: The GOAT \n\nDate of checkin: 2/22/19 \n\nCredit Card #: **** **** **** 5170 \n\nRoom #: 517 \n\n";
- break;
- case 7:
- cout << "Name: Eli Manning \n\nDate of checkin: \n\nCredit Card #: **** **** **** \n\nRoom #: \n\n";
- break;
- case 8:
- cout << "Name: \n\nDate of checkin: \n\nCredit Card #: **** **** **** \n\nRoom #: \n\n";
- break;
- case 9:
- cout << "Name: \n\nDate of checkin: \n\nCredit Card #: **** **** **** \n\nRoom #: \n\n";
- break;
- case 10:
- cout << "Name: \n\nDate of checkin: \n\nCredit Card #: **** **** **** \n\nRoom #: \n\n";
- break;
- case 11:
- cout << "Name: \n\nDate of checkin: \n\nCredit Card #: **** **** **** \n\nRoom #: \n\n";
- break;
- case 12:
- cout << "Name: \n\nDate of checkin: \n\nCredit Card #: **** **** **** \n\nRoom #: \n\n";
- break;
- case 13:
- cout << "Name: \n\nDate of checkin: \n\nCredit Card #: **** **** **** \n\nRoom #: \n\n";
- break;
- case 14:
- cout << "Name: \n\nDate of checkin: \n\nCredit Card #: **** **** **** \n\nRoom #: \n\n";
- break;
- default:
- cout << "\n\nTRY AGAIN\n\n";
- break;
- }
- }while(info<=0 || info >=15);
- break;
- default:
- cout << "\n\nINVALID INPUT\n\n";
- break;
- }
- }while(password!=382602);
- break;
- }
- cout << "\n\nWould you like to restart? 1= Y, 2= N\n\n";
- cin >> n;
- }while(n== 1);
- }
- void customerInfo()
- {
- cout << "What is your first name?\n";
- cin >> firstName;
- cout << endl;
- cout << "What is your surname?\n";
- cin >> surname;
- cout << endl;
- cout << "Would you like to stay in? A suite is $253.95 per night, and a normal is $100 per night\n1) Suite\n2) Normal (1/2)\n";
- cin >> hotelChoice;
- cout << endl;
- switch(hotelChoice)
- {
- case 1:
- cout << "How many nights would you like to stay?\n";
- cin >> numOfNights;
- cout << endl;
- suitePrice=(suitePrice*numOfNights);
- cout << "Total price: " << suitePrice << endl;
- do
- {
- srand(time(NULL));
- a = rand() % 200;
- cout << "\n\nEnter your credit card number: ";
- cin >> creditCardNumber;
- cout << endl << endl;
- cout << "Cards expiration date: ";
- cin >> dateOfExpiration;
- cout << "Your name is " << firstName << " " << surname << ", you plan on staying " << numOfNights << " nights in a normal room, your card # is " << creditCardNumber << ", the expiration date is " << dateOfExpiration << " and the final price is " << suitePrice << endl;
- cout << "Is this all correct? (y/n)\n";
- cin >> option;
- }while(option == "n");
- cout << "Congrats! You've booked a room! Enjoy your stay! You will be in room " << a;
- break;
- case 2:
- srand(time(NULL));
- a = rand() % 100;
- cout << "How many nights would you like to stay?\n";
- cin >> numOfNights;
- cout << endl;
- normalPrice=(normalPrice*numOfNights);
- cout << "Total price: " << normalPrice << endl;
- do
- {
- cout << "\n\nEnter your credit card number: ";
- cin >> creditCardNumber;
- cout << endl << endl;
- cout << "Cards expiration date: ";
- cin >> dateOfExpiration;
- cout << "Home address: ";
- getline(cin, a1);
- cout << "Your name is " << firstName << " " << surname << ", you plan on staying " << numOfNights << " nights in a normal room, your card # is " << creditCardNumber << ", the expiration date is " << dateOfExpiration << " and the final price is " << normalPrice << endl;
- cout << "Is this all correct? (y/n)\n";
- cin >> option;
- }while(option == "n");
- cout << "Congrats! You've booked a room! You will be in room " << a;
- break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement