# Write a C++ program in which user enter his NTS and FSc marks and your program will help student in selection of university.

## Program in which user enter his NTS and FSc marks and your program will help student in selection of university.

##### Object:

Write a C++ program in which user enter his NTS and FSc marks and your program will help student in selection of university. Based on these marks Student will be allocated a seat at different department of different university.
University Name Departments Criteria c++ projects for beginners.

• Oxford University IT Above 70% in Fsc. and 70 % in NTS
• Electronics Engr: Above 70% in Fsc. and 60 % in NTS
• Telecommunication Above 70% in Fsc. and 50 % in NTS
• MIT IT 70% -60 % in Fsc. and 50 % in NTS
• Chemical Engr: 59% – 50 % in Fsc. and 50 % in NTS
• Computer Engr: Above 40% and below 50 % in Fsc. and 50 % in NTS

Note: Use Nested if structure to solve the problem. Don’t use logical operators.

## Code:

#include<iostream>
#include<conio.h>

using namespace std;
void main()
{
int fsc,nts;
cin>>fsc;
cin>>nts;
if(fsc>70)
{
if(nts>=70)
{
cout<<“\nCongratulations You have got Admission in Oxford University on IT Department.”;
}
else if(nts>=60)
{
cout<<“\nCongratulations You have got Admission in Oxford University on Electronics Engr. Department.”;
}
else if(nts>=50)
{
cout<<“\nCongratulations You have got Admission in Oxford University on Telecommunication Department.”;
}
}
else if(fsc<=70)
{
if(fsc>=60)
{
if(nts>=50)
{
cout<<“\nCongratulations You have got Admission in MIT University on IT Department.”;
}
}
else if(fsc<=59)
{
if(fsc>=50)
{
if(nts>=50)
{
cout<<“\nCongratulations You have got Admission in MIT University on Chemical Engr. Department.”;
}
}
}

else if(fsc<50)
{
if(fsc>40)
{
if(nts>=50)
{
cout<<“Congratulations You have got Admission in MIT University on Computer Engr Department.”;
}
}
}
}
else
{
cout<<“Invalid Marks Enter please Provide Valid Information!!!”;
}

getch();
}

```#include<iostream>
#include<conio.h>

using namespace std;
void main()
{
int fsc,nts;
cin>>fsc;
cin>>nts;
if(fsc>70)
{
if(nts>=70)
{
cout<<"\nCongratulations You have got Admission in Oxford University on IT Department.";
}
else if(nts>=60)
{
cout<<"\nCongratulations You have got Admission in Oxford University on Electronics Engr. Department.";
}
else if(nts>=50)
{
cout<<"\nCongratulations You have got Admission in Oxford University on Telecommunication Department.";
}
}
else if(fsc<=70)
{
if(fsc>=60)
{
if(nts>=50)
{
cout<<"\nCongratulations You have got Admission in MIT University on IT Department.";
}
}
else if(fsc<=59)
{
if(fsc>=50)
{
if(nts>=50)
{
cout<<"\nCongratulations You have got Admission in MIT University on Chemical Engr. Department.";
}
}
}

else if(fsc<50)
{
if(fsc>40)
{
if(nts>=50)
{
cout<<"Congratulations You have got Admission in MIT University on Computer Engr Department.";
}
}
}
}
else
{
cout<<"Invalid Marks Enter please Provide Valid Information!!!";
}

getch();
}
```

## Output:

Another Program: Write a C++ program that will display if a students is pass or not in his exam.