Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<string>
- #include <iostream>
- #include<vector>
- using namespace std;
- int main()
- {
- //variables Cinema
- float adult = 10.30;
- float senior_citizen = 8.24;
- float children = 5.15;
- int tickets = 60;
- int adults;
- int childrens;
- int seniors;
- int booking ;
- int left;
- int count;
- int num;
- int userguide;
- //movie names
- string d = "DeadPool";
- string g = "Goosebumps";
- //welcome message
- string A;
- cout << "Hi, what's your staff name" << endl;
- cin >> A;
- cout << A << " welcome to this Cinema " << endl;
- cout << "Please type 1 to reserve DeadPool on 01/01/2018"<< endl;
- cout << "Please type 2 to reserve DeadPool on 05/01/2018"<< endl;
- cout << "Please type 3 to reserve Goosebumps on 01/01/2018"<< endl;
- cout << "Please type 4 to see the userguide"<< endl;
- //start loop if 1 or 2
- int choice;
- cout: choice;
- cin >> choice;
- if (choice == 1)
- {
- cout << "You picked DeadPool on 01/01/2018" << endl;
- cout<< "How many seats booked ?"<< endl;
- int seats;
- cin >> seats;
- cout <<tickets - seats << "more seats available"<<endl;
- booking = booking + seats ;
- cout << "we have got three types of tickets" << endl;
- cout << "How many adults in total, you would like to book for?" << endl;
- cin >> adults;
- cout << "How many childs in total, you would like to book for?" << endl;
- cin >> childrens;
- cout << "How many senior citizen in total, you would like to book for?" << endl;
- cin >> seniors;
- cout << "Total amount due £" << (adult * adults) + (children * childrens) + (senior_citizen * seniors) << endl;
- booking = adults + childrens + seniors;
- booking = booking + seats;
- cout << "total bookings" << booking<<endl ;
- }
- if (choice == 2)
- {
- cout << "You picked DeadPool on 05/01/2018" << endl;
- cout<< "How many seats booked ?"<< endl;
- int seats;
- cin >> seats;
- cout <<tickets - seats << "more seats available"<<endl;
- booking = booking + seats ;
- cout << "we have got three types of tickets" << endl;
- cout << "How many adults in total, you would like to book for?" << endl;
- cin >> adults;
- cout << "How many childs in total, you would like to book for?" << endl;
- cin >> childrens;
- cout << "How many senior citizen in total, you would like to book for?" << endl;
- cin >> seniors;
- cout << "Total amount due £" << (adult * adults) + (children * childrens) + (senior_citizen * seniors) << endl;
- booking = adults + childrens + seniors;
- booking = booking + seats;
- cout << "total bookings" << booking<<endl ;
- }
- if (choice == 3)
- {
- cout << "You picked Goosebumps on 01/01/2018" << endl;
- cout<< "How many seats booked ?"<< endl;
- int seats;
- cin >> seats;
- cout <<tickets - seats << "more seats available"<<endl;
- booking = booking + seats ;
- cout << "we have got three types of tickets" << endl;
- cout << "How many adults in total, you would like to book for?" << endl;
- cin >> adults;
- cout << "How many childs in total, you would like to book for?" << endl;
- cin >> childrens;
- cout << "How many senior citizen in total, you would like to book for?" << endl;
- cin >> seniors;
- }
- if (choice == 4 ){
- cout<<"\n=>The user have to enter their name and staff ID to proceed\n"
- <<"\n=>The user have to select a movie and number of tickets\n"
- <<"\n=>The user can maximum buy 10 tcikets at a time\n"
- <<"\n=>Your bill and total sale of the day ";
- cin>>userguide;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement