The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 2 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Hi..this is my next assignment, but I am having difficulties to finish it. I have about a week to do it so if someone can code for me and explain it to me. I would really apreciate it.
Â
Assignment 7I this lab assignment,useclassto create the data structure of student records. Each recordcontain RUID, student name, quiz grades, and exam grades. The data structure should bedeclared as below. All member data of the class are declared as private data.classstudents {public:// all necessary member functions here;// using the friend function in classfriend void change_name() // passing necessary inputsprivate:struct record {int RUID;string first_name;string last_name;vector <double> quiz_grades;array <double,3> exam_grafes;};vector <record> student_records;};In this assignment, we also introduce thefriendfunction of the class. A function can bedeclared as friend of the class as seen as above. A friend function is not a member function ofthe class. However, it has access to the private data of the class. To call the friend function inthe main() function:int main() {students stdn;change_name ( stdn, <any additional input here>);}
Attachments: