Friday, December 6, 2024

TNPSC QUALIFICATION C++ PROGRAMMING

  NALLAMUTHU GOUNDER MAHALINGAM COLLEGE                   

                           POLLACHI-642001

                                     R.Rasigapriya

                           Bsc Computer Science(Ist Year)

                           8.TNPSC Qualification

#include <iostream>

int main()

{ 

    int age;

    std::string Qualification;

    std::cout<<"Enter your Name"<<"R.RasigaPriya\n";

    std::cout<<"Enter your age\n";

    std::cin>>age;

    std::cout<<"Enter your qualification";

    std::cin>>Qualification;

    if(age>=21& age<=32 && Qualification=="Graduate")

    {

        std::cout<<"You are eligible to apply for group 1"<<std::endl;

    }

    else

    {

        std::cout<<"You are not eligible to apply for group 1"<<std::endl;

    }

    if(age>=18 & age<=30 && Qualification=="Graduate")

    {

        std::cout<<"You are eligible to apply for group 2"<<std::endl;

    }

     else

    {

        std::cout<<"You are not eligible to apply for group 2"<<std::endl;

    }

    if(age>=18 & age<=42 && Qualification=="Graduate")

    {

        std::cout<<"You are eligible to apply for group 3"<<std::endl;

    }

    else

    {

        std::cout<<"You are not eligible to apply for group 3"<<std::endl;

    }

    if(age>=18 & age<=30 && Qualification=="SSLC")

     {

        std::cout<<"You are eligible to apply for group 4"<<std::endl;

    }

    else

    {

        std::cout<<"You are not eligible to apply for group 4"<<std::endl;

    }

    return 0;

}

OUTPUT:



USD TO INR C++ PROGRAMMING

  NALLAMUTHU GOUNDER MAHALINGAM COLLEGE                                                 POLLACHI-642001                                     ...