Untitled

mail@pastecode.io avatar
unknown
c_cpp
2 years ago
12 kB
2
Indexable
Never
#include <iostream>

using namespace std;

int main(){
    int start_trip, end_trip;

    system("clear");
    cout << "LRT" << endl;
    cout << "What is your starting station?" << endl << endl;
    cout << "[1] Recto \t[6] Gilmore \t\t[11] Santolan" << endl;
    cout << "[2] Legarda \t[7] Betty-GO \t\t[12] Marikina" << endl;
    cout << "[3] Pureza \t[8] Araneta Cubao \t[13] Antipolo" << endl;
    cout << "[4] V. Mapa \t[9] Anonas" << endl;
    cout << "[5] J. Ruiz \t[10] Katipunan" << endl << endl;

    cout << "Enter your choice: ";
    cin >> start_trip;
    system("clear");


    cout << "What is your destination?" << endl << endl;
    cout << "[1] Recto \t[6] Gilmore \t\t[11] Santolan" << endl;
    cout << "[2] Legarda \t[7] Betty-GO \t\t[12] Marikina" << endl;
    cout << "[3] Pureza \t[8] Araneta Cubao \t[13] Antipolo" << endl;
    cout << "[4] V. Mapa \t[9] Anonas" << endl;
    cout << "[5] J. Ruiz \t[10] Katipunan" << endl << endl;

    cout << "Enter your choice: ";
    cin >> end_trip;

    system("clear");   

    switch(start_trip){
        case 1:
        cout << "Starting Station - Recto | ";
        switch (end_trip){
            case 1:
            cout << "You are already at Recto Station.";
            break;

            case 2:
            cout << "Destination Station - Legarda " << endl;
            cout << "Your Fee is - 15 PHP";
            break;

            case 3:
            cout << "Destination Station - Pureza " << endl;
            cout << "Your Fee is - 15 PHP";
            break;

            case 4:
            cout << "Destination Station - V. Mapa " << endl;
            cout << "Your Fee is - 15 PHP";
            break;

            case 5:
            cout << "Destination Station - J. Ruiz " << endl;
            cout << "Your Fee is - 20 PHP";
            break;

            case 6:
            cout << "Destination Station -  Gilmore " << endl;
            cout << "Your Fee is - 20 PHP";
            break;

            case 7:
            cout << "Destination Station -  Betty Go " << endl;
            cout << "Your Fee is - 20 PHP";
            break;

            case 8:
            cout << "Destination Station -  Cubao " << endl;
            cout << "Your Fee is - 20 PHP";
            break;

            case 9:
            cout << "Destination Station -  Anonas " << endl;
            cout << "Your Fee is - 25 PHP";
            break;

            case 10:
            cout << "Destination Station -  Katipunan " << endl;
            cout << "Your Fee is - 25 PHP";
            break;

            case 11:
            cout << "Destination Station -  Santolan " << endl;
            cout << "Your Fee is - 25 PHP";
            break;

            case 12:
            cout << "Destination Station -  Marikina " << endl;
            cout << "Your Fee is - 30 PHP";
            break;

            case 13:
            cout << "Destination Station -  Antipolo " << endl;
            cout << "Your Fee is - 25 PHP";
            break;

            default:
            cout << "Please enter a valid input.";
        }
        break;

        case 2:
        cout << "Starting Station - Legarda | ";
        switch (end_trip){
            case 1:
            cout << "Destination Station - Recto " << endl;
            cout << "Your Fee is - 15 PHP";
            break;

            case 2:
            cout << "You are already at Legarda Station.";
            break;

            case 3:
            cout << "Destination Station - Pureza " << endl;
            cout << "Your Fee is - 15 PHP";
            break;

            case 4:
            cout << "Destination Station - V. Mapa " << endl;
            cout << "Your Fee is - 15 PHP";
            break;

            case 5:
            cout << "Destination Station - J. Ruiz " << endl;
            cout << "Your Fee is - 20 PHP";
            break;

            case 6:
            cout << "Destination Station -  Gilmore " << endl;
            cout << "Your Fee is - 20 PHP";
            break;

            case 7:
            cout << "Destination Station -  Betty Go " << endl;
            cout << "Your Fee is - 20 PHP";
            break;

            case 8:
            cout << "Destination Station -  Cubao Station" << endl;
            cout << "Your Fee is - 20 PHP";
            break;

            case 9:
            cout << "Destination Station -  Anonas Station" << endl;
            cout << "Your Fee is - 25 PHP";
            break;

            case 10:
            cout << "Destination Station -  Katipunan Station" << endl;
            cout << "Your Fee is - 25 PHP";
            break;

            case 11:
            cout << "Destination Station -  Santolan Station" << endl;
            cout << "Your Fee is - 25 PHP";
            break;

            case 12:
            cout << "Destination Station -  Marikina Station" << endl;
            cout << "Your Fee is - 30 PHP";
            break;

            case 13:
            cout << "Destination Station -  Antipolo Station" << endl;
            cout << "Your Fee is - 30 PHP";
            break;

            default:
            cout << "Please enter a valid input.";
        
    }
        break;

        case 3:
        cout << "Starting Station - Pureza | ";
        switch (end_trip){
            case 1:
            cout << "Destination Station - Recto Station" << endl;
            cout << "Your Fee is - 15 PHP";
            break;

            case 2:
            cout << "Destination Station - Legarda Station." << endl;
            cout << "Your Fee is - 15 PHP";
            break;

            case 3:
            cout << "You are already at Pureza Station";
            break;

            case 4:
            cout << "Destination Station - V. Mapa Station" << endl;
            cout << "Your Fee is - 15 PHP";
            break;

            case 5:
            cout << "Destination Station - J. Ruiz Station" << endl;
            cout << "Your Fee is - 20 PHP";
            break;

            case 6:
            cout << "Destination Station -  Gilmore Station" << endl;
            cout << "Your Fee is - 20 PHP";
            break;

            case 7:
            cout << "Destination Station -  Betty Go Station" << endl;
            cout << "Your Fee is - 20 PHP";
            break;

            case 8:
            cout << "Destination Station -  Cubao Station" << endl;
            cout << "Your Fee is - 20 PHP";
            break;

            case 9:
            cout << "Destination Station -  Anonas Station" << endl;
            cout << "Your Fee is - 25 PHP";
            break;

            case 10:
            cout << "Destination Station -  Katipunan Station" << endl;
            cout << "Your Fee is - 25 PHP";
            break;

            case 11:
            cout << "Destination Station -  Santolan Station" << endl;
            cout << "Your Fee is - 25 PHP";
            break;

            case 12:
            cout << "Destination Station -  Marikina Station" << endl;
            cout << "Your Fee is - 25 PHP";
            break;

            case 13:
            cout << "Destination Station -  Antipolo Station" << endl;
            cout << "Your Fee is - 30 PHP";
            break;

            default:
            cout << "Please enter a valid input.";
        
    }
        break;

        case 4:
        cout << "Starting Station - V. Mapa | ";
        switch (end_trip){
            case 1:
            cout << "Destination Station - Recto " << endl;
            cout << "Your Fee is - 15 PHP";
            break;

            case 2:
            cout << "Destination Station - Legarda ." << endl;
            cout << "Your Fee is - 15 PHP";
            break;

            case 3:
            cout << "Destination Station - Pureza ." << endl;
            cout << "Your Fee is - 15 PHP"; 
            break;

            case 4:
            cout << "You are already at V. Mapa ";
            break;

            case 5:
            cout << "Destination Station - J. Ruiz " << endl;
            cout << "Your Fee is - 20 PHP";
            break;

            case 6:
            cout << "Destination Station -  Gilmore " << endl;
            cout << "Your Fee is - 20 PHP";
            break;

            case 7:
            cout << "Destination Station -  Betty Go " << endl;
            cout << "Your Fee is - 20 PHP";
            break;

            case 8:
            cout << "Destination Station -  Cubao " << endl;
            cout << "Your Fee is - 20 PHP";
            break;

            case 9:
            cout << "Destination Station -  Anonas " << endl;
            cout << "Your Fee is - 25 PHP";
            break;

            case 10:
            cout << "Destination Station -  Katipunan " << endl;
            cout << "Your Fee is - 25 PHP";
            break;

            case 11:
            cout << "Destination Station -  Santolan " << endl;
            cout << "Your Fee is - 25 PHP";
            break;

            case 12:
            cout << "Destination Station -  Marikina " << endl;
            cout << "Your Fee is - 25 PHP";
            break;

            case 13:
            cout << "Destination Station -  Antipolo " << endl;
            cout << "Your Fee is - 25 PHP";
            break;

            default:
            cout << "Please enter a valid input.";
        
    }
        break;

        case 5:
        cout << "Starting Station - J. Ruiz | ";
        switch (end_trip){
            case 1:
            cout << "Destination Station - Recto Station" << endl;
            cout << "Your Fee is - 20 PHP";
            break;

            case 2:
            cout << "Destination Station - Legarda Station." << endl;
            cout << "Your Fee is - 15 PHP";
            break;

            case 3:
            cout << "Destination Station - Pureza Station." << endl;
            cout << "Your Fee is - 15 PHP"; 
            break;

            case 4:
            cout << "Destination Station - V. Mapa Station." << endl;
            cout << "Your Fee is - 15 PHP";        
            break;

            case 5:
            cout << "You are already at J. Ruiz Station";
            break;

            case 6:
            cout << "Destination Station -  Gilmore Station" << endl;
            cout << "Your Fee is - 20 PHP";
            break;

            case 7:
            cout << "Destination Station -  Betty Go Station" << endl;
            cout << "Your Fee is - 20 PHP";
            break;

            case 8:
            cout << "Destination Station -  Cubao Station" << endl;
            cout << "Your Fee is - 20 PHP";
            break;

            case 9:
            cout << "Destination Station -  Anonas Station" << endl;
            cout << "Your Fee is - 25 PHP";
            break;

            case 10:
            cout << "Destination Station -  Katipunan Station" << endl;
            cout << "Your Fee is - 25 PHP";
            break;

            case 11:
            cout << "Destination Station -  Santolan Station" << endl;
            cout << "Your Fee is - 25 PHP";
            break;

            case 12:
            cout << "Destination Station -  Marikina Station" << endl;
            cout << "Your Fee is - 25 PHP";
            break;

            case 13:
            cout << "Destination Station -  Antipolo Station" << endl;
            cout << "Your Fee is - 25 PHP";
            break;

            default:
            cout << "Please enter a valid input.";
        
    }
        break;

        case 6:
        cout << "Starting Station - Gilmore "


    return 0;
    }
}