Assignment 3

Back ] Up ] Next ]

Discussion group, leave your messages

Home
Assignment 1
Assignment 2
Assignment 3
Assignment 4
Assignment 5
Last Assignment

 

Create definitions for the class Student, write the application and print contents

Due Date: announced in class 50 Points

You job is to implement the definition and write a java application as described on page 127 (exercise 5.14) of the text book.

On Page 85 of our textbook there is a specification of the class Student. 

You are to create the definitions for the instance variables of the class. These would be: 

thisName;
thisAddress;
thisSsn;
creditHours;
feesPaid;

write definitions of the methods ssn and changeSsn, fees, feesPaid and payFees. (Questions 5.14 a, b, c, d, e)

Create a constructor to create one student giving him/her a name, address and ssn, and do not forget to initialize credit hours and fees.

As the output of your application it will display:
Student Name
Student Address
Student ssn
How many credit hours that student is taking
How much are the current fees, assuming the each credit costs $100
How much student has paid towards the fees
Make a new payment (Method payFees) and display the remaining balance

These are the doc comment for the sections of the exercise.

b.

/**
* The social security number of this Student.
*/

/**
* Change this Student’s social security number to the
* specified value.
*/

c.

/**
* This Student’s current fees (dollars).
*/

d.

/**
* Fees paid by this Student (dollars).
*/

/**
* This Student has paid the specified amount (dollars).
*/

e.

/**
* Create a new Student with the specified name, address, andsocial
* security number.
*/

Turn in:

bullet

Make sure to document your application well

bullet

turn in your floppy disk with this project

bullet

printed copy (hard copy) of your code

bullet

printed copy of your output

bullet

printer doc document

bullet

Place all this material on envelope, put your name, date, assignment # and class.

 

Back to CS161 JAVA Homepage
This page was last modified January 10, 2002
wmorales@pcc.edu