Friday, 2 November 2012

Inter Result Card

// inter

#include <iostream>
using namespace std;
int main()
{
double Math , Phy , Computer_science , Pak_studies , Urdu , Eng , Islamiat;
double percentage , obtained_marks , total_percentage;
cout << "This is Inter Result Card. Total Marks According to Intermediate....\n";
cout << "Enter Obtained marks of Math: ";
cin >> Math;
percentage = (Math/200) * 100;
cout<<"Percentage of Maths is = "<< percentage << endl;
cout << "Enter Obtained marks of Physics: ";
cin >> Phy;
percentage = (Phy/200) * 100;
cout<<"Percentage of Physics is = "<< percentage << endl;
cout << "Enter Obtained marks of Computer Science: ";
cin >> Computer_science;
percentage= (Computer_science/200) * 100;
cout<<"Percentage of Computer Science is = "<< percentage << endl;
cout << "Enter Obtained marks of Pak Studies(Total marsk: 50): ";
cin >> Pak_studies;
percentage = (Pak_studies/50) * 100;
cout<<"Percentage of Pakistan Studies is = "<< percentage << endl;
cout << "Enter Obtained marks of Urdu: ";
cin >> Urdu;
percentage = (Urdu/200) * 100;
cout<<"Percentage of Urdu is = "<< percentage << endl;
cout << "Enter Obtained marks of English: ";
cin >> Eng;
percentage = (Eng/200) * 100;
cout<<"Percentage of English is = "<< percentage << endl;
cout << "Enter Obtained marks of Islamiat(Total marsk: 50): ";
cin >> Islamiat;
percentage = (Islamiat/50) * 100;
cout<<"Percentage of Islamiat is = "<< percentage << endl;
obtained_marks= Math + Phy + Computer_science + Pak_studies + Urdu + Eng + Islamiat;
cout << "Your Obtained marks are = "<< obtained_marks << endl;
total_percentage = (obtained_marks/1100) * 100;
cout << "Your Total Percentage is = " << total_percentage << endl;
cout << "Thank You" << endl;
return 0;
}

No comments:

Post a Comment