資源簡介
最最最最最原始的學(xué)生管理系統(tǒng) 采用文件存儲數(shù)據(jù) 控制臺顯示
1、綜合運(yùn)用自己所學(xué)的Java面向?qū)ο蟪绦蛟O(shè)計(jì)知識,設(shè)計(jì)一學(xué)生成績管理系統(tǒng)。要求如下:
(1)學(xué)生的信息包括:學(xué)號、姓名、班級、多門課程的成績等。(20分)
(2)系統(tǒng)功能包括:輸入、刪除、修改、查詢學(xué)生成績等。(50分)
(3)編碼符合規(guī)范。(30分)

代碼片段和文件信息
import?java.io.BufferedReader;
import?java.io.IOException;
import?java.io.InputStreamReader;
public?class?Menu?{
public?int?main()?throws?IOException
{
int?choice=0;
//do{
System.out.println(“*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*“);
System.out.println(“*??????????????????歡.迎.使.用.學(xué).生.管.理.系.統(tǒng)??????????????????????????????????????????????????*“);
System.out.println(“*.*.*.*.*.*.*.*.*.*..*.*.*.*.*.*.*.*.*.*..*.*.*.*.*.*.*.*.*“);
System.out.println(“*???????????????????????請選擇登錄賬號類型??????????????????????????????????????????????????????????????????*“);
System.out.println(“*??????????????????????????1.學(xué)生???????????????????????????????????????????????????????????????????????????????*“);
System.out.println(“*??????????????????????????2.老師???????????????????????????????????????????????????????????????????????????????*“);
System.out.println(“*?????????????????????????????????????????????????????????*“);
System.out.println(“*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*“);
choice?=?Read();
//}
// while(choice<1||choice>2);
return?choice;
}
public?void?Login()
{
System.out.println(“*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*“);
System.out.println(“*??????????????????歡.迎.使.用.學(xué).生.管.理.系.統(tǒng)??????????????????????????????????????????????????*“);
System.out.println(“*.*.*.*.*.*.*.*.*.*..*.*.*.*.*.*.*.*.*.*..*.*.*.*.*.*.*.*.*“);
System.out.println(“*???????????????????????賬號:_________?????????????????????*“);
System.out.println(“*???????????????????????密碼:_________?????????????????????*“);
System.out.println(“*?????????????????????????????????????????????????????????*“);
System.out.println(“*?????????????????????????????????????????????????????????*“);
System.out.println(“*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*“);
}
public?int?teacherMain()?throws?IOException
{
int?choice?=?0;
System.out.println(“*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*“);
System.out.println(“*??????????????????歡.迎.使.用.學(xué).生.管.理.系.統(tǒng)??????????????????????????????????????????????????*“);
System.out.println(“*.*.*.*.*.*.*.*.*.*..*.*.*.*.*.*.*.*.*.*..*.*.*.*.*.*.*.*.*“);
System.out.println(“*???????????????????????1.添加學(xué)生信息????????????????????????????????????????????????????????????????????????*“);
System.out.println(“*???????????????????????2.輸入學(xué)生成績????????????????????????????????????????????????????????????????????????*“);
System.out.println(“*???????????????????????3.修改學(xué)生成績????????????????????????????????????????????????????????????????????????*“);
System.out.println(“*---------------------------------------------------------*“);
System.out.println(“*???????????????????????4.刪除學(xué)生成績????????????????????????????????????????????????????????????????????????*“);
System.out.println(“*???????????????????????5.刪除學(xué)生信息?????????????????????????????????????????????????????????????
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件????????301??2013-06-13?12:51??StudentManagerSystem_by?nadam\.classpath
?????文件????????389??2013-06-20?10:09??StudentManagerSystem_by?nadam\.fatjar
?????文件????????405??2013-06-13?12:51??StudentManagerSystem_by?nadam\.project
?????文件????????598??2013-06-13?12:51??StudentManagerSystem_by?nadam\.settings\org.eclipse.jdt.core.prefs
?????文件???????4913??2013-07-12?20:43??StudentManagerSystem_by?nadam\bin\Menu.class
?????文件???????2976??2013-07-12?20:43??StudentManagerSystem_by?nadam\bin\Student.class
?????文件??????10411??2013-07-12?20:43??StudentManagerSystem_by?nadam\bin\StudentOperate.class
?????文件???????2167??2013-07-12?20:43??StudentManagerSystem_by?nadam\bin\Test.class
?????文件????????310??2013-06-19?21:21??StudentManagerSystem_by?nadam\data\StuInfo?-?副本.dat
?????文件????????233??2013-06-28?15:31??StudentManagerSystem_by?nadam\data\StuInfo.dat
?????文件????????311??2013-06-20?09:56??StudentManagerSystem_by?nadam\data\StuInfo.dat.bak
?????文件?????????21??2013-06-18?23:50??StudentManagerSystem_by?nadam\data\stuPwd.dat
?????文件?????????13??2013-06-18?23:34??StudentManagerSystem_by?nadam\data\stuPwd.dat.bak
?????文件?????????19??2013-06-18?23:53??StudentManagerSystem_by?nadam\data\teacherPwd.dat
?????文件?????????10??2013-06-18?22:51??StudentManagerSystem_by?nadam\data\teacherPwd.dat.bak
?????文件???????4675??2013-06-19?21:09??StudentManagerSystem_by?nadam\src\Menu.class
?????文件???????6508??2013-06-19?21:26??StudentManagerSystem_by?nadam\src\Menu.java
?????文件???????2252??2013-06-19?21:09??StudentManagerSystem_by?nadam\src\Student.class
?????文件???????2208??2013-06-19?13:28??StudentManagerSystem_by?nadam\src\Student.java
?????文件???????9042??2013-06-19?21:09??StudentManagerSystem_by?nadam\src\StudentOperate.class
?????文件??????14672??2013-06-28?15:29??StudentManagerSystem_by?nadam\src\StudentOperate.java
?????文件???????1935??2013-06-19?21:07??StudentManagerSystem_by?nadam\src\Test.class
?????文件???????2856??2013-06-19?10:09??StudentManagerSystem_by?nadam\src\Test.java
?????目錄??????????0??2013-07-03?19:38??StudentManagerSystem_by?nadam\.settings
?????目錄??????????0??2013-07-12?20:43??StudentManagerSystem_by?nadam\bin
?????目錄??????????0??2013-07-03?19:38??StudentManagerSystem_by?nadam\data
?????目錄??????????0??2013-07-03?19:38??StudentManagerSystem_by?nadam\src
?????目錄??????????0??2013-07-03?19:38??StudentManagerSystem_by?nadam
-----------?---------??----------?-----??----
????????????????67225????????????????????28
............此處省略1個(gè)文件信息
評論
共有 條評論