Whatsapp +92 307 4151718 vuassassins@gmail.com

Jahanzaib Ashiqoffline

  • 19

    posts

  • 20

    comments

  • 52

    Views

  • admin 1 month, 1 week ago

    #include
    using namespace std;
    int main()
    {
    // All Variable Declared.
    int program_option;
    int year1;
    int year2;
    int year3;
    int year4;
    int studentsSum;

    cout << "Please Select The Program Options, In Which You Want To Enter Enrollments.\n";
    cout << "Please Enter Option 1 for BCS program.\n";
    cout << "Please Enter Option 2 for BIT program.\n";
    cout << "Please Enter Option 3 for BBA program.\n";
    cout << "Please Enter Option 4 for BA program.\n";
    cout << "===================\n";
    do {
    cout <> program_option;
    if(program_option > 4){
    cout < 4);

    cout <> year1;

    cout <> year2;

    cout <> year3;

    cout <> year4;
    cout << "\n\n";
    if(program_option == 1){
    cout << "==============DEPARTMENT OF COMPUTER SCIENCE==============\n";
    } else if(program_option == 2){
    cout << "==============DEPARTMENT OF COMPUTER SCIENCE==============\n";
    } else if(program_option == 3) {
    cout << "==============DEPRTAMENT OF BUSINESS ADMINISTRATION==============\n";
    } else {
    cout << "==============DEPARTMENT OF FINE ARTS==============\n";
    }
    cout << "\n";

    cout << "The number of students in year 1 is: ";
    cout << year1;
    cout << "\n";

    cout << "The number of students in year 2 is: ";
    cout << year2;
    cout << "\n";

Keep in touch

Friends

Profile Photo
Hafsa Ali
@hafsa

Groups

Profile Photo
Computer Science
Public Group

E-mail Address

vuassassins@gmail.com

Website

Phone Number

03074151718