#include <iostream> using namespace std; int main() { cout<<"\t\t\t=======================================================\t\t\t"<<endl; cout<<"\t\t\t\tStudent Result calculation\t\t\t\t"<<endl; cout<<"\t\t\t=======================================================\t\t\t"<<endl; string name,Department; float Total_marks,Marks_in_ICT,Marks_in_English,Marks_in_Pak_Stdy,Marks_in_Islamic_stdy,Marks_in_Programming_Fundamentals,Marks_in_Mathematics,Total_Obtained_marks,Average,Highest_score_sub,Percentage; cout<<"Enter the Student name:"<<name<<endl; cin>>name; cout<<"Enter the department of the student:"<<Department<<endl; cin>>Department; cout<<"\t\t\t$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$\t\t\t"<<endl; Total_marks=500; cout<<"Total marks="<<Total_marks<<endl; cout<<"\t\t\t$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$\t\t\t"<<endl; cout<<"Marks in ICT subj:"; cin>>Marks_in_ICT; cout<<Marks_in_ICT<<endl; cout<<"Marks_in_English:"<<Marks_in_English<<endl; cin>>Marks_in_English; cout<<"Marks_in_Pak_Stdy:"<<Marks_in_Pak_Stdy<<endl; cin>>Marks_in_Pak_Stdy; cout<<"Marks_in_Islamic_stdy:"<<Marks_in_Islamic_stdy<<endl; cin>>Marks_in_Islamic_stdy; cout<<"Marks_in_Programming_Fundamentals:"<<Marks_in_Programming_Fundamentals<<endl; cin>>Marks_in_Programming_Fundamentals; cout<<"Marks_in_Mathematics:"<<Marks_in_Mathematics<<endl; cin>>Marks_in_Mathematics; cout<<"\t\t\t$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$\t\t\t"<<endl; Total_Obtained_marks=Marks_in_ICT+Marks_in_English+Marks_in_Pak_Stdy+Marks_in_Islamic_stdy+Marks_in_Programming_Fundamentals+Marks_in_Mathematics; cout<<"Total_Obtained_marks="<<Total_Obtained_marks<<endl; cout<<"\t\t\t$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$\t\t\t"<<endl; Average=(Marks_in_ICT+Marks_in_English+Marks_in_Pak_Stdy+Marks_in_Islamic_stdy+Marks_in_Programming_Fundamentals+Marks_in_Mathematics)/6; cout<<"Average of obtained marks of Student are="<<Average<<endl; cout<<"\t\t\t$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$\t\t\t"<<endl; cout<<"Highest scores are in subject:"<<Highest_score_sub<<endl; cin>>Highest_score_sub; cout<<"\t\t\t$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$\t\t\t"<<endl; Percentage=Total_Obtained_marks*100/500; cout<<"Percentage of obtained marks are="<<Percentage<<"%"<<endl; cout<<"\t\t\t$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$\t\t\t"<<endl; cout<<"=================GOOD LUCK FOR FURTHER================"<<endl; system ("PAUSE"); return 0; }
|
Comments
Post a Comment
Let me know your doubts