Presentation is loading. Please wait.

Presentation is loading. Please wait.

Java Homework 1 Requirements Define a “ Student Class ” Attributes: firstName, lastName, school, studentID, age, year, etc. Methods: getNameInfo(), getAgeInfo(),

Similar presentations


Presentation on theme: "Java Homework 1 Requirements Define a “ Student Class ” Attributes: firstName, lastName, school, studentID, age, year, etc. Methods: getNameInfo(), getAgeInfo(),"— Presentation transcript:

1 Java Homework 1 Requirements Define a “ Student Class ” Attributes: firstName, lastName, school, studentID, age, year, etc. Methods: getNameInfo(), getAgeInfo(), getIDInfo(), etc. Declare a attribute or a method as static if need. Design a Stack that supports your student class Push, pop-up is required Empty, overflow should be detected Further more, it should be able to insert or remove an element in any assigned position. Write a application to demonstrate functionalities of your stack. Think about how to show all your functionalities and creativities. Deadline : 3/23

2 Scoring & tips Code & report : 1. 符合基本功能 80% 2. 使用者介面設計 : 6% Window-based 3. 程式撰寫風格 : 7% 4. 額外撰寫附加的功能與創意 : 7% fault-tolerance New functions are encouraged Ex: show all elements, delete all, etc.

3 Illustration Class Stack Class StackElement StackElement next Class StackElement Student s StackElement next Class Student Name ID Score Student s

4 Inner Class 在類別中您還可以定義類別,稱之為內部類別( Inner class )或 「巢狀類別」( Nested class ) 成員內部類別是直接宣告類別為成員,例如: public class OuterClass { //.... // inner class private class InnerClass { //.... } }

5 Homework Upload FTP site: 140.114.78.12 Username: CS3401 Password: 2006javapro 1. Compress your homework as “ StudentID_hw1_version.zip ” ( or StudentID_hw1_version.rar ” ) 928306_hw1_1.zip 928306_hw1_2.zip for second revised version 928306_hw1_3.zip for third revised version 2. Connect to the course ftp site and create a directory named “ StudentID_hw1 ” 928306_hw1 3. Upload your homework into the directory Note: only override permission is provided, i.e., modify and delete are not allowed


Download ppt "Java Homework 1 Requirements Define a “ Student Class ” Attributes: firstName, lastName, school, studentID, age, year, etc. Methods: getNameInfo(), getAgeInfo(),"

Similar presentations


Ads by Google