Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /************************************************************************************************************************************************************
- Student Ranking System
- -Calculate student's CGPA
- -Find the highest marks and the lowest mark
- -Categorize students to their respective rank
- -
- **************************************************************************************************************************************************************/
- #include <iostream>
- #include <iomanip>
- #include <string.h>
- #include <math.h>
- using namespace std;
- int main()
- {
- int sid;
- double precal,algo,cpp;
- char name[50];
- cout<<setw(50)<<"Student Ranking System"<<endl;
- cout<<setw(50)<<"======================"<<endl<<endl;
- cout<<"Name"<<endl;
- cin>>name;
- cout<<"\nStudent ID"<<endl;
- cin>>sid;
- cout<<"\nPlease Enter your marks for Pre-Calculus : ";
- cin>>precal;
- cout<<"\nPlease enter your marks for algorithm : ";
- cin>>algo;
- cout<<"\nPlease enter your marks for C++ : ";
- cin>>cpp;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement