Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 131,534 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 2,185 people online right now. Registration is fast and FREE... Join Now!




classes and objects

 
Reply to this topicStart new topic

classes and objects, work for high school

baruch23
post 14 Dec, 2005 - 03:55 PM
Post #1


New D.I.C Head

*
Joined: 14 Dec, 2005
Posts: 1


My Contributions


For this program you will need to design a Student class. The class should conform to the specifications as follows.
Student
Objects of this class are used to model students. Each Student object should be characterized by

• a last name (up to, but not exceeding 15 characters)
• six grades
• the weights for each grade
• a student ID number
• a calculated score
• a letter grade

You can choose to store the calculated score and the letter grade in data members or, preferably, simply use a function to calculate and retrieve the values on an as needed basis. Student objects should also include
• a member function to read/input values interactively (i.e., assign values to the data members)
• a member function to display/output values (i.e., retrieve values from the data members)

90 <= grade, A
80 <= grade < 90, B
70 <= grade < 80, C
60 <= grade < 70, D
00 <= grade < 60, F
User is offlineProfile CardPM

Go to the top of the page


Nova Dragoon
post 14 Dec, 2005 - 03:56 PM
Post #2


The Innocent Shall Suffer, Big Time

Group Icon
Joined: 16 Aug, 2001
Posts: 6,124



Thanked 4 times

Dream Kudos: 515

Expert In: Python, Linux

My Contributions


As per the Forum Rules , you'll need to show us what you've done do far. We can help you from there
User is offlineProfile CardPM

Go to the top of the page

Reply to this topicStart new topic
Time is now: 11/20/08 01:44AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month