|
Take-Home Exam:OOP with Java
|
| Total Mark: 100 +40 (optional) =140 |
| Due: 12 pm 10/25/2003 |
| Problem and Analysis: Write a simple Java Program to implement student mark management system with Swing. |
| Question 1: The student.txt file(in last page)is a pure text file. There are five students info there. Open and read the file and understand the structure. (5%) |
| Question 2: Write a Person interface with setFirstName(String) , getFirstName(), setLastName(String),getLastName() methods. Put person class in person package.(5%) |
|
Question 3: Write a Student class which implements Person. You need
to offer set and get methods for major, OOP_java_Mark, Web _Page_Mark
and E-commerce_Mark. Student is a some package with person (5%). Student(String fristName,String lastName,String major,double oop_java_mark, double web_page_mark,double e-commerce_mark) |
|
Question 4: Write a class: DataLoad.java. You need offer the following
methods:(15) /*-----------read txt file from disk-------------*/ Note: To implement the above methods, maybe you need other methods. |
|
Question 5: Write a GUI interface like this.(10)
|
|
Question 6. Implement the add button function: When add button is pressed,
the second window should When every information is ok, you can add a studnet into student table(hashMap)
|
Question 7(Optional): When remove button is pressed, you can remove
student.(20) |
Question 8: When statistic button is pressed in the mian window, The
statistic info is display.(Take OOP-java as a example).(25)
|
| Question 9(optional) Add a button called Save between Edit Marks and Exit. This button will save all your change to student.txt file(20). |
| Question 10: When "Exit" button is pressed, stop this program.(5) |
| file: student.txt FirstName/LastName/major/OOP-Java/Web Tech/E-commerce Tech. |