Need idea for start this program.....?
Consider the following Student class specification:
public Student() //CONSTRUCTOR
Initialized the attributes
public String name ()
This Student’s name
public String address()
This Student’s address
public String matric ()
This Student’s matric number
public int creditHours ()
Number of credit hours this Student enrolled in
public int fees ()
This Student’s fees for the semester
public int feesPaid ()
Amount this Student has paid so far for this semester
public void changeName(String newName)
Change the name of this Student
public void changeAddress (String newAddress)
Change the address of this Student
public void changeMatric(String newMatric)
Change the matric of this Student
public void payFees(int amout)
Pay specified amount of fees
public void registerCourses(Course course)
Register course(s) for this Student
public void displayCourses(Course course)
Display courses registered by this Student
#The methods registerCourses and displayCourses in the class Student use another class - class Course. The specification for the class Course is given:
public void registerCourses (String courses[], int numberOfCourses)
Register the courses to this Student
public void displayCourses()
Display courses registered by this Student
1. Write the complete program for the classes Student and Course above (Assume that the fees are $100 per credit hour, student can only register a maximum of 5 courses and minimum of 1 course per semester, all the attributes should be declared as private).
2. Test the above class program in a new class which has the main()method (your main() program should be interactive)