Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need help with this c++ code here. Ill post the code below. If someone code help me out by posting steps maybe thatll be fine.

Need help with this c++ code here. Ill post the code below. If someone code help me out by posting steps maybe thatll be fine.

image text in transcribed

Here is the code below to modify. Thank you

image text in transcribed

image text in transcribed

Modify the below code to add a function to add the points for exams 1 and 2 Also create the student objects 2 and 3 as asked in the code. Test the average and total functions for all four student objects Feel free to optimize the code if you like. #include #include using namespace std; //Add a function that computes and returns the average of the two test results for a student class Stul f public: Stu1); Stul(string initName, int initPoints1, int initPoints2); void SetName (string stuName); string GetName) const; void SetPoints1(int stuPoints); int GetPoints1) const; void SetPoints2(int stuPoints); int GetPoints2() const; void printDetails(); double GetAveragePoints (int stuPoints1, int stuPoints2); //returns a value //add function/s to report the total points for the two exams for a student (Stu1 object) // Stu1) fcout

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

More Books

Students also viewed these Databases questions