This is the code that I have...
This is what the program is supposed to do....Code:#include <iostream> #include <fstream> using namespace std; string name; float grade; float average; string coursename; string instrctorname; string coursebook; int numstudents; class Student { public : void name (); void grade (float grade); void average (float average); private : string name; float grade; float average; }; class Course {public : void coursename (); void instructorname (); void coursebook (); void numstudents (); private : string coursename; string instructorname; string coursebook; int numstudents; };
" Simple Class Design:
Create a class that represents some typical COURSE and a class that represents STUDENTS.
A "Student" will contain
NAME
GRADES
AVERAGE
A "Course" will contain
COURSE NAME
COURSE INSTRUCTOR
COURSE BOOK
STUDENTS (30)
There should be methods in the student class to:
input their grades (from a file)
calc average
print their grades and average
There should be methods in the course class to:
print all of the students names in the class
print all the averages for the students in the class
Am I even heading in the right direction? This program is really starting to frustrate me....any help? please and thanks



LinkBack URL
About LinkBacks


