Greetings Everyone!!

I have just receantly joined the Free Java Programming Online Course,
and for most of all, i have already summited most of the homeworks
that i was capable of develop, but...the only thing that bug me is the
lab 1014 for creating own classes. I'm stuck

Would someone explain in proper details the homework, is very abstract
(or to ambigue) for my understanding:

The homework is to either modify MyStudentRecordExampleProject
NetBeans project you've done in Exercise 1 above or create a new
project as following.  (You might want to create a new project by
copying the MyStudentRecordExampleProject project.  You can name the
homework project in any way you want but here I am going to call it
MyOwnProject.)

    * Create a Student class as following:
          o The Student class has StudentRecord class as an instance
variable.  Name it as studentRecord.
                + You can use the StudentRecord class from the
MyStudentRecordExampleProject above or you can create a new one - the
only requirement is that it has to have at least one instance variable
of its own.
          o The Student class has studentId instance variable whose
type is Integer type.
          o Move the studentCount static variable from the
StudentRecord class to Student class.
    * Rewrite main.java as following
          o Create 3 instances of Student class and initialize them
accordingly - use whatever initialization values that  are
appropriate.
          o Display the information of each student including the
student id, name.
          o Display the studentCount.

For me, the main issues are as follows:

1. do we have to create three classes (Student, StudentRecord, Main)
based on the MyStudentRecordExampleProject instead of two(Student,
Main...for example)??

2. does it mean that i can use all of the instances from StudentRecord
class into Student class, so i can eliminate the StudentRecord class??

3. when i create my studentID intance variable as Integer, do we have
to put his intance in the Student class or in the main class??

4. is it necesary (obligatory) to declare studentID as public "static"
Integer??

5. after setting the student's ID (which are practically personal), i
get the following logical error:

run:
Student Name: Anna
Student ID: 556 (i set it up to 256)
Grade Level: 12
Math Grade: 75.0
English Grade: 56.3
Science Grade: 47.1
Average Grade: 59.46666666666667
Student Name: Bobby
Student ID: 556 (set it to 432)
Grade Level: 13
Math Grade: 68.0
English Grade: 73.0
Science Grade: 79.0
Average Grade: 73.33333333333333
Student Name: John
Student ID: 556 (this is the original value, but i don't get why it
repeats itself into my other student's ID?? =/)
Grade Level: 14
Math Grade: 87.0
English Grade: 92.0
Science Grade: 89.0
Average Grade: 89.33333333333333
Number of Students: 3


for futhermore,  i would aprettiate any help for solving this
homework. and help my try to understand where are my flaws in this
homerwork??


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to