[Instructions] [Search] [Current] [News] [Syllabus] [Glance] [Links] [Handouts] [Project] [Outlines] [Labs] [Assignments] [Quizzes] [Exams] [Examples] [EIJ] [JPDS] [Tutorial] [API]
Assigned: Wednesday, February 2, 2000
Due: Tuesday, February 8, 2000
Build a class, StudentInfo
, that can be used to
store information on a student. You need not worry about
storing information on all a student's classes; overall GPA
is fine.
As you might expect, some aspects of student information will
change, while other aspects will remain fixed. You should
define a setXXX
method for things that can change.
You should define a getXXX
method to extract
any piece of information you think that another class might
use. At least one of your methods should do more than just
get or set a field of the class.
Once you have built the class, write a simple test program that shows that the various methods work.
You may work alone or in groups of up to size four. If you work in a group, turn in one assignment for the whole group.
For extra credit, use auxiliary classes to store portions of
the information. For example, you might define a separate
Name
class to represent names.
[Instructions] [Search] [Current] [News] [Syllabus] [Glance] [Links] [Handouts] [Project] [Outlines] [Labs] [Assignments] [Quizzes] [Exams] [Examples] [EIJ] [JPDS] [Tutorial] [API]
Disclaimer Often, these pages were created "on the fly" with little, if any, proofreading. Any or all of the information on the pages may be incorrect. Please contact me if you notice errors.
This page may be found at http://www.math.grin.edu/~rebelsky/Courses/CS152/2000S/Assignments/assign.02.html
Source text last modified Wed Feb 2 09:26:37 2000.
This page generated on Wed Feb 2 09:26:40 2000 by Siteweaver. Validate this page's HTML.
Contact our webmaster at rebelsky@grinnell.edu