studgrade

Write a C + + class including the code of the functions to maintain information about a Student. The class data members are Student ID, subject, unit, prelim grade, midterm grade, final grade. and compute the average grades of the prelim, midterm and finals.
Last edited on
Do you have any questions or something?
Last edited on
I doubt it, just a lot of illegible code not posted into [code] tags and the idea of being clever by saying that what I refer to as "illegible mess" is "C++". I had never guessed...

That's not even a difficult question.
Create a class
class myClass {} myObject *myPointer;
... to maintain information about a student
1
2
3
4
5
class student {
    public:
        std::string name;
        // etc...
} student;

I don't know what "prelim" "midterm" and "final" mean, and I'm not helping you any more. You can do that yourself.

Hint: average = (value_one + value_2 + value_3) / amount_of_values;
Last edited on
Topic archived. No new replies allowed.