#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; cout'Enter the average score of the Islamic\n'; cin >> x2; cout'Enter the average score of the Arabic\n'; cin>>x3; cout'Enter the average score of the English\n'; cin>>x4; cout'Enter the average score of the Sciences\n'; cin >> x5; cout'Enter the average score of the Maths\n'; cin >> x6; cout'Enter the average score of the Social studies\n'; cin>>x7; z=x1+x2+x3+x4+x5+x6+x7; cout << 'Total scores=' <<z<< endl; if(z<350) cout << 'The student fails' << endl; else if (z>600) cout'Distinct'; else if (z>500) cout << 'Excellent ' << endl; else if(z==700) cout << '😍😍' << endl; else if(z>400) cout << 'good' << endl; }

C++ Program to Calculate Student's Total Score and Grade

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

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