Really need help creating this Class program... please );

Apr 19, 2016 at 4:44am
Write a class name StudentRecord with the following specifications –
• Data members:
name, marks[], major, term (use appropriate data type)

• Member functions:
o You are allowed to leave the constructor default
o Implement all get/set methods
o double findAverage( ) – returns the average mark of the student
o void displayProfile( ) – displays the profile of a student in following manner:
Name: John Smith
Major: Computer Science
Term: Fall 2015
Term average: 90%

• Main function:
o Take input from user for name, major and term name
o Take input from the user for 5 courses s/he has enrolled in this term (you must
put a validation checking that the range of input such that 100<=marks>=0) o Create an object of StudentRecord class
o Set name, major, term name and the marks[]
o Invoke displayProfile() function to display the information of the student

• Special instruction: You MUST submit following 3 files –
o StudentProfile.h
o StudentProfile.cpp
o StudentProfileMain.cpp
Last edited on Apr 19, 2016 at 4:58am
Apr 19, 2016 at 8:10am
Topic archived. No new replies allowed.