.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

BCT Commander- Save $7.00
winSPWW2- Save $5.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old July 23rd, 2009, 06:32 AM
hEad's Avatar

hEad hEad is offline
Sergeant
 
Join Date: Dec 2007
Location: WA, Australia
Posts: 228
Thanks: 18
Thanked 7 Times in 5 Posts
hEad is on a distinguished road
Default O.T Help sought from Java Programmers

I have, for all my sins, taken a Java programming unit as an elective. Now don't get me wrong, programming is something I have always wanted to have a go at - but with my current abilities, this particular assignment has ruptured my brain.


Design an application that simulates a University student administration system. The application should consist of three classes:

• Student
• Enrolment
• Admin

The Driver class should be the Admin class. All student objects must be stored in an array. Basic input validations need to be conducted. The details of the individual classes are as follows:

Student class (30 marks)
A student has a student number (8 digits, numbers only), first name (String), last name(String), gender (male or female)(String), date of birth (Gregorian Calendar), contact phone (10 digits) and the year (eg. 2009) they commenced the program (degree).

You should have get and set methods for all these data members. In addition to this, you must have a method printDetails() in the Student class.

Enrolment class (30 marks)
The Enrolment class needs to talk to the Student class. This class must have three methods, namely:

• addStudent()
• getStudent()
• printEnrolment()

Admin class (30 marks)

The Admin class should drive the system. It should have a method fillData() . This method should create an instance of enrolment, populate the enrolment with at least 5 students and finally print it. It should also have a method called searchStudent(). This method allows searching for a student based on user input. This user input is asked at runtime on the command line, no menu implementation is needed. This method is repeated until a student is found in the enrolment. If a student is found, the program will terminate.

Finally, all classes except the driver class must have a constructor.

This is what I have for Student so far...


public class Student {

public String studentID;
public String firstName;
public String lastName;
public String gender;
public String dateOfBirth;
public String phoneNumber;
public String yearCommenced;

public Student(String sId, String fn, String ln, String sex, String dOB, String pn, String yc){
sId = studentID;
fn = firstName;
ln = lastName;
sex = gender;
dOB = dateOfBirth;
pn = phoneNumber;
yc = yearCommenced;
}
public String getStudentID(){
return studentID;
}
public String getFirstName(){
return firstName;
}
public String getLastName(){
return lastName;
}
public String getGender(){
return gender;
}
public String getDateOfBirth(){
return dateOfBirth;
}
public String getPhoneNumber(){
return phoneNumber;
}
public String getYearCommenced(){
return yearCommenced;
}
public String printDetails(){
nothing here yet..
}

This represents a few days work - pitiful, i know, but i just can't get any momentum happening to solve the problem!

Basically i am at a loss. I sort of semi grasp OOB concepts but
trying to understand all the jargon and put this thing together
is giving me vertigo.

If any bright sparks out there have some knowledge on this and a bit of time to spare, I’d be mightily grateful.

Here are the assignment specs if you want a look.

Attached Files
File Type: pdf CPT121_2009_SP2_A2.pdf (27.4 KB, 426 views)
Reply With Quote
 

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 08:36 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.