1、(完整word版)用java做的简短学生成绩管理系统(不连接数据库)import java.util.*;public class Main String N= new String100;String I=new String100;int A=new int100;String S=new String100;String Z=new String100;int C=new int100;int M=new int100;int E=new int100;int i; public class person Scanner src=new Scanner(System.in);String
2、 name= new String100;String id=new String100;int age=new int100;String sex=new String100;public void caidan() System.out.println(欢迎登陆学生档案管理系统);System.out.println(1录入学生信息);System.out.println(2查询所有学生信息);System.out.println(3修改某位学生信息);System.out.println(4删除某位学生信息);System.out.println(5增加某位学生信息);System.ou
3、t.println(6查询某位学生信息);System.out.println(7退出); public void luru() xuesheng guanli1=new xuesheng();guanli1.luru(); public void chaxun()xuesheng guanli1=new xuesheng();guanli1.chaxun(); public void zengjia()xuesheng guanli1=new xuesheng();guanli1.zengjia(); public void shanchu()xuesheng guanli1=new xue
4、sheng();guanli1.shanchu(); public void xiugai()xuesheng guanli1=new xuesheng();guanli1.xiugai();public void chaxun1()xuesheng guanli1=new xuesheng();guanli1.chaxun1(); public void denglu() Scanner src=new Scanner(System.in);int s;String q;System.out.println(请先登录系统!);System.out.println(1学生登录 2教师登录);s
5、=src.nextInt();if(s=1)System.out.println(请输入密码:(xuesheng);q=src.next();if(q.equals(xuesheng)zhixing();else System.out.println(请确认后重新登录登陆!);denglu();else if(s=2)System.out.println(请输入密码:(jiaoshi);q=src.next();if(q.equals(jiaoshi)zhixing();else System.out.println(请确认后重新登录登陆!);denglu(); public void zhi
6、xing() Scanner src=new Scanner(System.in);Main guanli=new Main(); int m=0; int t=0; while(m!=4) switch(t) case 0:guanli.caidan();System.out.println(请输入相应编号完成操作:);t=src.nextInt();break; case 1:guanli.luru();guanli.caidan();System.out.println(请输入相应编号完成操作:);t=src.nextInt();break; case 2:guanli.chaxun()
7、;guanli.caidan();System.out.println(请输入相应编号完成操作:);t=src.nextInt();break; case 3:guanli.xiugai();guanli.caidan();System.out.println(请输入相应编号完成操作:);t=src.nextInt();break; case 4:guanli.shanchu();guanli.caidan();System.out.println(请输入相应编号完成操作:);t=src.nextInt();break; case 5:guanli.zengjia();guanli.caida
8、n();System.out.println(请输入相应编号完成操作:);t=src.nextInt();break; case 6:guanli.chaxun1();guanli.caidan();System.out.println(请输入相应编号完成操作:);t=src.nextInt();break; case 7:m=4; public class xuesheng extends person private String zybj=new String100;private int chinese=new int100;private int math=new int100;pr
9、ivate int english=new int100;public void luru()int r;System.out.println(请输入原始学生人数:);r=src.nextInt();i=r;for(int t=0 ;ti;t+) System.out.println(请输入学生姓名:); Nt=namet=src.next(); System.out.println(请输入学生学号:); It=idt=src.next(); System.out.println(请输入学生性别:); St=sext=src.next(); System.out.println(请输入学生年龄
10、:); At=aget=src.nextInt(); System.out.println(请输入学生专业班级:); Zt=zybjt=src.next(); System.out.println(语文成绩:); Ct=chineset=src.nextInt(); System.out.println(数学成绩:); Mt=matht=src.nextInt(); System.out.println(英语成绩:); Et=englisht=src.nextInt(); public void zengjia() int f;i=i+1;f=i-1; System.out.println(请
11、输入学生姓名:); Nf=namef=src.next(); System.out.println(请输入学生学号:); If=idf=src.next(); System.out.println(请输入学生性别:); Sf=sexf=src.next(); System.out.println(请输入学生年龄:); Af=agef=src.nextInt(); System.out.println(请输入学生专业班级:); Zf=zybjf=src.next(); System.out.println(语文成绩:); Cf=chinesef=src.nextInt(); System.out
12、.println(数学成绩:); Mf=mathf=src.nextInt(); System.out.println(英语成绩:); Ef=englishf=src.nextInt();public void shanchu()String m; int s;System.out.println(请输入您要删除的学生的学号:);m=src.next();for(s=0;si;s+)if(m.equals(Is)for(;si;s+)Ns=Ns+1;names=names+1;Is=Is+1;ids=ids+1;Ss=Ss+1;sexs=sexs+1;As=As+1;ages=ages+1;Z
13、s=Zs+1;zybjs=zybjs+1;Cs=Cs+1;chineses=chineses+1;Ms=Ms+1;maths=maths+1;Es=Es+1;englishs=englishs+1;i=i-1;System.out.println(操作成功!);public void chaxun1()String m; int s;System.out.println(请输入您要查询的学生的学号:);m=src.next();for(s=0;si;s+)if(m.equals(Is) System.out.print(学生姓名:+Ns); System.out.print(学生学号:+Is)
14、; System.out.print(学生性别:+Ss); System.out.print(学生年龄:+As); System.out.print(学生专业班级:+Zs); System.out.print(语文成绩:+Cs); System.out.print(数学成绩:+Ms); System.out.println(英语成绩:+Es); System.out.println(操作成功!);public void xiugai()String n;int s;System.out.println(请输入您要修改的学生的学号:);n=src.next();for(s=0;si;s+)if(
15、n.equals(Is)System.out.println(请输入学生姓名:);Ns=names=src.next(); System.out.println(请输入学生学号:); Is=ids=src.next(); System.out.println(请输入学生性别:); Ss=sexs=src.next(); System.out.println(请输入学生年龄:); As=ages=src.nextInt(); System.out.println(请输入学生专业班级:); Zs=zybjs=src.next(); System.out.println(语文成绩:); Cs=chi
16、neses=src.nextInt(); System.out.println(数学成绩:); Ms=maths=src.nextInt(); System.out.println(英语成绩:); Es=englishs=src.nextInt(); System.out.println(操作成功!);public void chaxun() for(int y=0;yi;y+) System.out.print(学生姓名:+Ny); System.out.print(学生学号:+Iy); System.out.print(学生性别:+Sy); System.out.print(学生年龄:+Ay); System.out.print(学生专业班级:+Zy); System.out.print(语文成绩:+Cy); System.out.print(数学成绩:+My); System.out.println(英语成绩:+Ey); System.out.println(操作成功!); public static void main(String args) Main guanli=new Main();guanli.denglu();