Professional Documents
Culture Documents
HAIDER
HAIDER
ROLL NO : 237919
DEPARTMENT : MATHEMATICS
SEMESTER : 2ND
SUBMITTED TO: SIR MUDDASIR
DATE : 14/06/2024
PROGRAM:
#include <iostream>
int main() {
string name;
getline(cin, name);
string fathername;
getline(cin, fathername);
int rollnumber;
cin.ignore();
string college;
getline(cin, college);
int english, urdu, islamiyat, pakistanstudies, mathematics, physics,
computerscience;
int totalmarks;
cout << "Obtained marks is: " << obtainedmarks << "\n";
cout << "Percentage is: " << percentage << "%" << "\n";
switch(int_per) {
case 9:
case 10:
break;
case 8:
break;
case 7:
break;
case 6:
break;
case 5:
break;
case 4:
cout << "Your grade is D" << "\n";
break;
default:
break;
return 0;
}
OUTPUT OF PROGRAM