// matric
#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 << "This program will get Marks according to Matric.....\n";
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;
}
No comments:
Post a Comment