Advertisement
Guest User

coding maddhue2

a guest
Nov 21st, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. /************************************************************************************************************************************************************
  2. Student Ranking System
  3. -Calculate student's CGPA
  4. -Find the highest marks and the lowest mark
  5. -Categorize students to their respective rank
  6. -
  7.  
  8.  
  9.  
  10. **************************************************************************************************************************************************************/
  11.  
  12.  
  13. #include <iostream>
  14. #include <iomanip>
  15. #include <string.h>
  16. #include <math.h>
  17. using namespace std;
  18.  
  19. int main()
  20. {
  21. int sid;
  22. double precal,algo,cpp;
  23. char name[50];
  24. cout<<setw(50)<<"Student Ranking System"<<endl;
  25. cout<<setw(50)<<"======================"<<endl<<endl;
  26. cout<<"Name"<<endl;
  27. cin>>name;
  28. cout<<"\nStudent ID"<<endl;
  29. cin>>sid;
  30. cout<<"\nPlease Enter your marks for Pre-Calculus : ";
  31. cin>>precal;
  32. cout<<"\nPlease enter your marks for algorithm : ";
  33. cin>>algo;
  34. cout<<"\nPlease enter your marks for C++ : ";
  35. cin>>cpp;
  36.  
  37.  
  38. return 0;
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement