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.

 

Write a C++ 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;
cout<<“Please Enter Your Fsc Marks here : “;
cin>>fsc;
cout<<“Please Enter Your NTS Marks here : “;
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;
	cout<<"Please Enter Your Fsc Marks here : ";
	cin>>fsc;
	cout<<"Please Enter Your NTS Marks here : ";
	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:

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

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

2 thoughts on “Write a C++ program in which user enter his NTS and FSc marks and your program will help student in selection of university.”

  1. Pingback: Write a program that continually calculates the cube of a number until the user enters a number that is divisible 2

  2. Pingback: C++ projects for beginners with source code - Codeboks

Leave a Comment

Your email address will not be published. Required fields are marked *