A PROGRAM OF MATRIC AND INTER RESULTs


Programs

*   Program no. 01


Ø  This Program is for Matric Result.

#include <iostream>
using namespace std;
int main()
{
          double Math , Phy , Chy , Computer_science , Pak_studies , Urdu , Eng , Islamiat;
          double percentage , obtained_marks , total_percentage;
          cout << "Enter Obtained marks of Math: ";
          cin >> Math;
          percentage = (Math/150) * 100;
          cout<<"Percentage of Maths is = "<< percentage << endl;
          cout << "Enter Obtained marks of Physics: ";
          cin >> Phy;
          percentage = (Phy/150) * 100;
          cout<<"Percentage of Physics is = "<< percentage << endl;
          cout << "Enter Obtained marks of Chemistry: ";
          cin >> Chy;
          percentage= (Chy/150) * 100;
          cout<<"Percentage of Chemistry is = "<< percentage << endl;
          cout << "Enter Obtained marks of Computer Science: ";
          cin >> Computer_science;
          percentage= (Computer_science/150) * 100;
          cout<<"Percentage of Computer Science is = "<< percentage << endl;
          cout << "Enter Obtained marks of Pak Studies: ";
          cin >> Pak_studies;
          percentage = (Pak_studies/75) * 100;
          cout<<"Percentage of Pakistan Studies is = "<< percentage << endl;
          cout << "Enter Obtained marks of Urdu: ";
          cin >> Urdu;
          percentage = (Urdu/150) * 100;
          cout<<"Percentage of Urdu is = "<< percentage << endl;
          cout << "Enter Obtained marks of English: ";
          cin >> Eng;
          percentage = (Eng/150) * 100;
          cout<<"Percentage of English is = "<< percentage << endl;
          cout << "Enter Obtained marks of Islamiat: ";
          cin >> Islamiat;
          percentage = (Islamiat/75) * 100;
          cout<<"Percentage of Islamiat is = "<< percentage << endl;
          obtained_marks= Math + Phy + Chy + Computer_science + Pak_studies + Urdu + Eng + Islamiat;
          cout << "Your Obtained marks are: "<< obtained_marks << endl;
          total_percentage = (obtained_marks/1050) * 100;
          cout << "Your Total Percentage is = " << total_percentage << endl;
          cout << "Thank You" << endl;
          return 0;
}






*   Program no. 02


Ø  This one is for Inter Result.


#include <iostream>
using namespace std;
int main()
{
          double Math , Phy, Computer_science, Pak_studies, Urdu , Eng , Islamiat;
          double percentage , obtained_marks , total_percentage;
          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: ";
          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: ";
          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;
}