#include using namespace std; int main() { cout'Enter name'<<endl; string name; cin >> name; int x1,x2,x3,x4,x5,x6,x7,z; cout'Enter the average score of the Qur'an\n'; cin >> x1; while(x1>100){ cout'It should be less than 100\n'; cin>>x1; } cout'Enter the average score of the Islamic\n'; cin >> x2; while(x2>100){ cout'It should be less than 100\n'; cin>>x2; } cout'Enter the average score of the Arabc\n'; cin>>x3; while(x3>100){ cout'It should be less than 100\n'; cin>>x3; } cout'Enter the average score of the English\n'; cin>>x4; while(x4>100){ cout'It should be less than 100\n'; cin>>x4; } cout'Enter the average score of the Sciences\n'; cin >> x5; while(x5>100){ cout'It should be less than 100\n'; cin>>x5; } cout'Enter the average score of the Maths\n'; cin >> x6; while(x6>100){ cout'It should be less than 100\n'; cin>>x6; } cout'Enter the average score of the Social studies\n'; cin>>x7; while(x7>100){ cout'It should be less than 100\n'; cin>>x7; } z=x1+x2+x3+x4+x5+x6+x7; cout << 'Total scores/' <<name'='<<z<< endl; if(z<350) cout << 'Residuum' << endl; else if (z>350 && z<600) cout << 'good' << endl; else if (z>600 && z<700) cout << 'Excellent' << endl; else if(z==700) cout << 'Privilege '<<name << endl;

cout'Qur'an='<<x1<<endl;
if(x1<50)
    cout << 'Residuum' << endl;
else
    cout << 'Successful' << endl;

cout'Islamic='<<x2<<endl;
if(x2<50)
    cout << 'Residuum' << endl;
else
    cout << 'Successful' << endl;

cout'Arabc='<<x3<<endl;
if(x3<50)
    cout << 'Residuum' << endl;
else
    cout << 'Successful' << endl;

cout'English='<<x4<<endl;
if(x4<50)
    cout << 'Residuum' << endl;
else
    cout << 'Successful' << endl;

cout'Sciences='<<x5<<endl;
if(x5<50)
    cout << 'Residuum' << endl;
else
    cout << 'Successful' << endl;

cout'Maths='<<x6<<endl;
if(x6<50)
    cout << 'Residuum' << endl;
else
    cout << 'Successful' << endl;

cout << 'Social studies='<<x7<< endl;
if (x7<50)
    cout << 'Residuum' << endl;
else
    cout << 'Successful' << endl;

cout << 'Total=' <<z<< endl;
if (x1<50 && x2<50 && x3<50 && x4<50 && x5<50 && x6<50 && x7<50)
    cout << 'The result Residuum' << endl;
else
    cout << 'The result Successful' << endl;

}

C++ Code to Calculate Student's Total Score and Result

原文地址: https://www.cveoy.top/t/topic/bW4U 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录