高校人员信息管理系统
1、数据模型
教师、实验员、行政人员、教师兼行政人员
共有属性:编号、姓名、性别、出生年月
教师:所在系部、专业、职称
实验员:所在实验室、职称
行政人员:政治面貌、职务

package operation;import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.Scanner;import dao.add;
import dao.all;
import dao.count;
import dao.del;
import dao.edit;
import dao.sorr;
import domain.da;
import domain.xiao;
import domain.zhong;public class op {public static void show1(){System.out.println("   欢迎使用学生成绩管理系统");System.out.println("*********1.增加信息*********");System.out.println("*********2.删除信息*********");System.out.println("*********3.修改信息*********");System.out.println("*********4.查看信息*********");System.out.println("*********5.统计信息*********");System.out.println("*********6.总分排序*********");System.out.println("*********7.退出系统*********");System.out.println("请选择:");}public static void show2(){System.out.println(" 欢迎使用学生成绩管理系统  ");System.out.println("*********1.小学生********");System.out.println("*********2.中学生********");System.out.println("*********3.大学生********");System.out.println("*************************");System.out.println("请选择:");}public static void show3(){System.out.println(" 欢迎使用学生成绩管理系统  ");System.out.println("*********1.课   程********");System.out.println("*********2.分数段********");System.out.println("*********3.班    级********");System.out.println("*************************");System.out.println("请选择:");}public static void write(ArrayList<xiao> a,ArrayList<zhong> b,ArrayList<da> c){ObjectOutputStream oos ;try {oos = new ObjectOutputStream( new BufferedOutputStream(new FileOutputStream( "D://low.txt" )));oos .writeObject(a);oos .close();      } catch (IOException e ) {// TODO Auto-generated catch blocke .printStackTrace();} try {oos = new ObjectOutputStream( new BufferedOutputStream(new FileOutputStream( "D://mid.txt" )));oos .writeObject(b);oos .close();      } catch (IOException e ) {// TODO Auto-generated catch blocke .printStackTrace();}try {oos = new ObjectOutputStream( new BufferedOutputStream(new FileOutputStream( "D://high.txt" )));oos .writeObject(c);oos .close();      } catch (IOException e ) {// TODO Auto-generated catch blocke .printStackTrace();} System.out.println("**************写入成功**************");}public static  ArrayList<xiao> read1(){ArrayList<xiao> a =new ArrayList<>();  ;File f = new File("D://low.txt" );if(f.exists() == false)return a;try {ObjectInputStream ois = new ObjectInputStream( new BufferedInputStream( new FileInputStream( "D://low.txt" )));a =(ArrayList<xiao>) ois.readObject();ois .close();} catch (IOException e ) {// TODO Auto-generated catch blocke .printStackTrace();} catch (ClassNotFoundException e ) {// TODO Auto-generated catch blocke .printStackTrace();}return a;}public static  ArrayList<zhong> read2(){ArrayList<zhong> b =new ArrayList<>();  ;File f = new File("D://mid.txt" );if(f.exists() == false)return b;try {ObjectInputStream ois = new ObjectInputStream( new BufferedInputStream( new FileInputStream( "D://mid.txt" )));b =(ArrayList<zhong>) ois.readObject();ois .close();} catch (IOException e ) {// TODO Auto-generated catch blocke .printStackTrace();} catch (ClassNotFoundException e ) {// TODO Auto-generated catch blocke .printStackTrace();}return b ;}public static  ArrayList<da> read3(){ArrayList<da> c =new ArrayList<>();  ;File f = new File("D://high.txt" );if(f.exists() == false)return c;try {ObjectInputStream ois = new ObjectInputStream( new BufferedInputStream( new FileInputStream( "D://high.txt" )));c =(ArrayList<da>) ois.readObject();ois .close();} catch (IOException e ) {// TODO Auto-generated catch blocke .printStackTrace();} catch (ClassNotFoundException e ) {// TODO Auto-generated catch blocke .printStackTrace();}return c ;}public static void main(String[] args) {ArrayList<xiao> x = read1();ArrayList<zhong> z = read2();ArrayList<da> d = read3();boolean flag = true;Scanner input = new Scanner(System.in);do {show1();int c = input.nextInt();switch (c) {case 1:System.out.println("添加:");show2();int n = input.nextInt();add a = new add();if(n == 1) a.addxiao(x);else if(n == 2) a.addzhong(z);else a.addda(d);break;case 2:System.out.println("删除");show2();int xx = input.nextInt();del dd = new del();if(xx == 1) dd.del1(x);else if(xx == 2) dd.del2(z);else dd.del3(d);break;case 3:System.out.println("修改");show2();int yy = input.nextInt();edit e = new edit();if(yy == 1)  e.edit1(x);else if(yy == 2) e.edit2(z);else e.edit3(d);break;case 4:System.out.println("查看");show2();int zz = input.nextInt();all al = new all();if(zz == 1) al.mes1(x);else if(zz == 2) al.mes2(z);else al.mes3(d);break;case 5:System.out.println("统计");show3();count uu = new count();int hh = input.nextInt();if(hh == 1)  uu.course(x, z, d);else if(hh == 2)  uu.grade(x, z, d);else uu.cla(x, z, d);break;case 6:System.out.println("排序");             show2();int kk = input.nextInt();sorr s = new sorr();if(kk == 1) s.paixu1(x);else if(kk == 2) s.paixu2(z);else s.paixu3(d);  break;case 7:System.out.println("您已退出");   break;default:System.out.println("输入序号错误,请重新输入");}if(c == 7) flag = false;}while(flag == true);write(x,z,d);}}
package domain;import java.io.Serializable;public class da extends same implements Comparable<da>,Serializable{int zy;int gdsx;int ks;int cnt = 0;public da(){}public da(int zy, int gdsx, int ks) {super();this.zy = zy;this.gdsx = gdsx;this.ks = ks;}public int getZy() {return zy;}public void setZy(int zy) {this.zy = zy;}public int getGdsx() {return gdsx;}public void setGdsx(int gdsx) {this.gdsx = gdsx;}public int getKs() {return ks;}public void setKs(int ks) {this.ks = ks;}public int getCnt() {return cnt;}public void setCnt(int cnt) {this.cnt = cnt;}@Overridepublic int compareTo(da o) {// TODO Auto-generated method stubreturn o.cnt - this.cnt;}
}
package domain;import java.io.Serializable;public class same implements Serializable{//学号、姓名、出生年月、性别、班级String id;String name;String birth;String sex;String clas;public same(){}public same(String id, String name, String birth, String sex, String clas) {super();this.id = id;this.name = name;this.birth = birth;this.sex = sex;this.clas = clas;}public String getId() {return id;}public void setId(String id) {this.id = id;}public String getName() {return name;}public void setName(String name) {this.name = name;}public String getBirth() {return birth;}public void setBirth(String birth) {this.birth = birth;}public String getSex() {return sex;}public void setSex(String sex) {this.sex = sex;}public String getClas() {return clas;}public void setClas(String clas) {this.clas = clas;}}
package domain;import java.io.Serializable;public class xiao extends same implements Comparable<xiao>,Serializable {//英语、数学、语文成绩int ying;int shu;int yu;int cnt = 0;public xiao(){}public xiao(int ying, int shu, int yu) {super();this.ying = ying;this.shu = shu;this.yu = yu;}public int getYing() {return ying;}public void setYing(int ying) {this.ying = ying;}public int getShu() {return shu;}public void setShu(int shu) {this.shu = shu;}public int getYu() {return yu;}public void setYu(int yu) {this.yu = yu;}public int getCnt() {return cnt;}public void setCnt(int cnt) {this.cnt = cnt;}@Overridepublic int compareTo(xiao o) {// TODO Auto-generated method stubreturn o.cnt - this.cnt;}}

java高校人员信息管理系统相关推荐

  1. 基于JAVA高校科研信息管理系统计算机毕业设计源码+数据库+lw文档+系统+部署

    基于JAVA高校科研信息管理系统计算机毕业设计源码+数据库+lw文档+系统+部署 基于JAVA高校科研信息管理系统计算机毕业设计源码+数据库+lw文档+系统+部署 本源码技术栈: 项目架构:B/S架构 ...

  2. 基于Java的人员信息管理系统

    基于Java的人员信息管理系统 介绍 实现类(Person) 实现类(Menu) 实现类(Input) 实现类(Operator) 实现类(Test) 结果展示: 操作环境以及信息 介绍 利用Java ...

  3. 高校人员信息管理系统(Python版)

    目录 高校人员信息管理系统 一.问题描述 二.功能要求 三.问题的解决方案 四.运行环境说明 五.代码段 1.多文件 (1)员工类(文件1) (2)教师类(文件2) (3)实验员类(文件3) (4)行 ...

  4. 高校人员信息管理系统(C++版)

    目录 高校人员信息管理系统 一.问题描述 二.功能要求 三.问题的解决方案 四.代码段 1.多文件 2.单文件                                  高校人员信息管理系统  ...

  5. 高校人员信息管理系统(C++课设)

    /* 高校人员信息管理系统 作者:徐世兴 时间:2019年11月1日 *///预定义区 #include<iostream> #include<string> #include ...

  6. c++课设:高校人员信息管理系统 开发一个简易的高校人员信息管理系统,主要针对高校人员的基本信息进行管理。采用对象链表或对象数组存放各个对象,实现新增、修改、删除、查询以及统计等功能。

    通过本次课程设计,深入理解类和对象.继承和派生.重载和多态,熟练掌握面向对象的程序设计思想和方法,能够对现实世界中的实际问题进行分析.设计,并学会熟练运用面向对象的编程方法(OOP)-- C++语言进 ...

  7. 课程设计下:利用C++实现高校人员信息管理系统

    高校人员信息管理系统 需求分析 实现功能如下: 系统环境: 数据结构设计: 界面显示: 代码如下: 下载链接 需求分析 该系统所应包含的信息有以下一些: 人员的基本信息: 编号.姓名.年龄.性别.职称 ...

  8. 高校人员信息管理系统(Java课程设计,带图形界面版)

    题目 1.问题描述 某高校有四类员工:教师.实验员.行政人员,教师兼行政人员:共有的信息包括:编号.姓名.性别.年龄等.其中,教师还包含的信息有:所在系部.专业.职称:实验员还包含的信息由:所在实验室 ...

  9. c语言高校信息查询系统,高校人员信息管理系统c语言.doc

    #include #include #include #include #include using namespace std; class Person //基类 { protected: dou ...

最新文章

  1. Spring定时任务的配置
  2. c# mysql executenonquery_C#中ExecuteNonQuery()返回值注意点分析
  3. linux命令解释程序实验,实验二 命令解释程序的使用
  4. 基于OpenVINO的多输入model optimizer(Tensorflow)
  5. ARM指令ldr、str、stm、ldm理解
  6. python学习第二天标准输入输出和注释用法
  7. (转)比特币该如何扩容
  8. oracle的odbc源配置文件,odbc数据源配置oracle odbc driver configuration教程
  9. 基于Vue3在线商城(Vue3+VueCLI+VueRouter+vuex+axios+Bootstrap)
  10. Excel数据分析—折线图
  11. android 点击事件失效,安卓手机微信自带浏览器点击事件失效解决
  12. bootloader recovery
  13. sql连表查询、子查询、组合查询
  14. malloc和calloc
  15. Spring Boot 事务详解
  16. c-lodop自定义分页打印
  17. linux glibc2.12到2.14升级
  18. matlab小波变换边缘检测,matlab小波变换图像边缘检测源代码.m
  19. 如何排除BGA焊接问题-AE版
  20. qq空间相册查看器_教你用微信把自己的照片制作成音乐相册,模板多,操作又简单...

热门文章

  1. Python的解包知识
  2. git连接远程仓库以及常用命令
  3. html5图片锐化,让照片达到最佳“锐度” 这5种“锐化”方式需掌握
  4. ES GEO地理空间查询java版
  5. 冯诺依曼结构计算机方案包含3个要点,冯诺依曼体系结构计算机的要点和工作过程.doc...
  6. 怎么看曲线有没有斜渐近线_关于曲线的斜渐近线
  7. 技术分享 | Goby IP库初探
  8. k-Amazing Numbers (惊奇的数字)
  9. python json接口数据提取_返回数据中提取数据的方法(JSON数据取其中某一个值的方法)...
  10. 纵断面图标注栏数据复制