Menu
support@authoritypapers.com
+1(805) 568 7317

goal a program to manage student records you are asked to implement a program to man 5122456

Goal: a program to manage student records You are asked to implement a program to manage Student recordsof the following form: class Student { private: std::string name_; int number_; std::vector grades_; const int num_courses_;
// You need to implement the following four methods static std::string gen_name() { }
// To do static int gen_number() { }
// To do static int gen_grade() { }
// To do double compute_average() { }
// To do public: Student(const std::string& name, int number) : name_(name),number_(number), num_courses_(5) {     for (int i=0;i
Note that each student stores only 5 grades. Required functionality The program will store students in std::vector and willimplement the following functionality: Print student records; Print student records sorted by name (ascending order); Print student records sorted by average grade (ascending order);and Print the student record with the highest average grade (andprint average values).
Average values may be floats. Some example code to get you started Consider the code shown below, which showcases the use of sortalgorithm available in STL. #include #include #include
// time() #include
// srand(), rand() #include
// min_element(), max_element(),sort() bool sort(int i, int j) { return (i x; int n = 10; for (int i=0; i::iterator xi =x.begin(); xi != x.end(); xi++) {     std::cout ::iterator xi =x.begin(); xi != x.end(); xi++) {     std::cout ::iterator xi =x.begin(); xi != x.end(); xi++) {     std::cout . . .

"Order a similar paper and get 15% discount on your first order with us
Use the following coupon
"GET15"

Order Now