代码:

package 信息管理;//信1805-1 20183763 凌云

public class ScoreInformation {
private String stunumber = " ";
private String name = " ";
private Double mathematicsscore,englishiscore,networkscore,databasescore,softwarescore;

public String getStunumber() {
return stunumber;
}

public void setStunumber(String stunumber) {
this.stunumber = stunumber;
}

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public Double getMathematicsscore() {
return mathematicsscore;
}

public void setMathematicsscore(Double mathematicsscore) {
this.mathematicsscore = mathematicsscore;
}

public Double getEnglishiscore() {
return englishiscore;
}

public void setEnglishiscore(Double englishiscore) {
this.englishiscore = englishiscore;
}

public Double getNetworkscore() {
return networkscore;
}

public void setNetworkscore(Double networkscore) {
this.networkscore = networkscore;
}

public Double getDatabasescore() {
return databasescore;
}

public void setDatabasescore(Double databasescore) {
this.databasescore = databasescore;
}

public Double getSoftwarescore() {
return softwarescore;
}

public void setSoftwarescore(Double softwarescore) {
this.softwarescore = softwarescore;
}
}

package 信息管理;

import java.util.Scanner;

public class ScoreManagement {
private static ScoreInformation[] stu = new ScoreInformation[6];
static Scanner scan = new Scanner(System.in);
static int i = 0;
static boolean tag = true;
static boolean tag_1 = true;
//主类
public static void main(String[] args) {
add();
while(tag_1)
{

manu();
int a = scan.nextInt();
switch (a) {
case 1:luru();break;
case 2:xiugai();break;
case 3:jidian();break;
case 4:tag_1=false;break;
default:
break;
}
}
System.out.println("***********************************************************");
System.out.println(" 谢谢使用石家庄铁道大学软件工程系学生学籍管理系统 2019 版 ");
System.out.println(" 制作人:凌云 ");
System.out.println("***********************************************************");
}
//存入
static public void add()
{
stu[0] = new ScoreInformation();
stu[0].setStunumber("20183763");
stu[0].setName("凌云");
stu[1] = new ScoreInformation();
stu[1].setStunumber("20183746");
stu[1].setName("郭增新");
stu[2] = new ScoreInformation();
stu[2].setStunumber("20183747");
stu[2].setName("小秃子");
stu[3] = new ScoreInformation();
stu[3].setStunumber("20183748");
stu[3].setName("小傻子");
stu[4] = new ScoreInformation();
stu[4].setStunumber("20183749");
stu[4].setName("小呆子");
stu[5] = new ScoreInformation();
stu[5].setStunumber("20183750");
stu[5].setName("小脑残");
}
//菜单
static public void manu()
{
System.out.println("***********************************************************");
System.out.println(" 石家庄铁道大学软件工程系 ");
System.out.println(" 学生学籍管理系统 2019 版 ");
System.out.println("***********************************************************");
System.out.println(" 1、 学生考试成绩录入 ");
System.out.println(" 2、 学生考试成绩修改 ");
System.out.println(" 3、 计算学生成绩绩点");
System.out.println(" 4、退出学籍管理系统");
System.out.println("***********************************************************");
}
//录入
static public void luru()
{

System.out.println("***********************************************************");
System.out.println(" 石家庄铁道大学软件工程系学生学籍管理系统 2019 版 ");
System.out.println(" 学生考试成绩录入");
System.out.println("***********************************************************");
System.out.println(" 请输入学生学号:XXXXXXXX");
System.out.println("***********************************************************");
String scan_num = scan.next();

for(i=0;i<6;i++)
{
if(scan_num.equals(stu[i].getStunumber()))
{
tag=false;
break;
}
}
if(tag==true)
{
System.out.println("不存在");
}
//存在并且继续输入成绩
else
{
System.out.println("***********************************************************");
System.out.println(" 石家庄铁道大学软件工程系学生学籍管理系统 2019 版 ");
System.out.println(" 学生考试成绩录入界面");
System.out.println(" 学生学号:"+scan_num);
System.out.println(" 学生姓名:"+stu[i].getName());
System.out.println(" 请输入高等数学成绩:XXX");
System.out.println("***********************************************************");
stu[i].setMathematicsscore(scan.nextDouble());

System.out.println("***********************************************************");
System.out.println(" 石家庄铁道大学软件工程系学生学籍管理系统 2019 版 ");
System.out.println(" 学生考试成绩录入界面");
System.out.println(" 学生学号:"+scan_num);
System.out.println(" 学生姓名:"+stu[i].getName());
System.out.println(" 高等数学成绩:"+stu[i].getMathematicsscore());
System.out.println(" 请输入英语成绩:XXX");
System.out.println("***********************************************************");
stu[i].setEnglishiscore(scan.nextDouble());

System.out.println("***********************************************************");
System.out.println(" 石家庄铁道大学软件工程系学生学籍管理系统 2019 版 ");
System.out.println(" 学生考试成绩录入界面");
System.out.println(" 学生学号:"+scan_num);
System.out.println(" 学生姓名:"+stu[i].getName());
System.out.println(" 高等数学成绩:"+stu[i].getMathematicsscore());
System.out.println(" 英语成绩:"+stu[i].getEnglishiscore());
System.out.println(" 请输入计算机网络成绩:XXX");
System.out.println("***********************************************************");
stu[i].setNetworkscore(scan.nextDouble());

System.out.println("***********************************************************");
System.out.println(" 石家庄铁道大学软件工程系学生学籍管理系统 2019 版 ");
System.out.println(" 学生考试成绩录入界面");
System.out.println(" 学生学号:"+scan_num);
System.out.println(" 学生姓名:"+stu[i].getName());
System.out.println(" 高等数学成绩:"+stu[i].getMathematicsscore());
System.out.println(" 英语成绩:"+stu[i].getEnglishiscore());
System.out.println(" 计算机网络成绩:"+stu[i].getNetworkscore());
System.out.println(" 请输入数据库成绩:XXX");
System.out.println("***********************************************************");
stu[i].setDatabasescore(scan.nextDouble());

System.out.println("***********************************************************");
System.out.println(" 石家庄铁道大学软件工程系学生学籍管理系统 2019 版 ");
System.out.println(" 学生考试成绩录入界面");
System.out.println(" 学生学号:"+scan_num);
System.out.println(" 学生姓名:"+stu[i].getName());
System.out.println(" 高等数学成绩:"+stu[i].getMathematicsscore());
System.out.println(" 英语成绩:"+stu[i].getEnglishiscore());
System.out.println(" 计算机网络成绩:"+stu[i].getNetworkscore());
System.out.println(" 数据库成绩:"+stu[i].getDatabasescore());
System.out.println(" 请输入软件工程成绩:XXX");
System.out.println("***********************************************************");
stu[i].setSoftwarescore(scan.nextDouble());

System.out.println("***********************************************************");
System.out.println(" 石家庄铁道大学软件工程系学生学籍管理系统 2019 版 ");
System.out.println(" 学生考试成绩录入界面");
System.out.println(" 学生学号:"+scan_num);
System.out.println(" 学生姓名:"+stu[i].getName());
System.out.println(" 高等数学成绩:"+stu[i].getMathematicsscore());
System.out.println(" 英语成绩:"+stu[i].getEnglishiscore());
System.out.println(" 计算机网络成绩:"+stu[i].getNetworkscore());
System.out.println(" 数据库成绩:"+stu[i].getDatabasescore());
System.out.println(" 软件工程成绩:"+stu[i].getSoftwarescore());
System.out.println("***********************************************************");
System.out.println(" 该学生成绩已录入完毕,是否提交(Y/N)");
String x = scan.next();
//输入完确认
if(x=="Y")
{
manu();
}
else if(x=="N")
{
stu[i].setDatabasescore(0.0);
stu[i].setEnglishiscore(0.0);
stu[i].setMathematicsscore(0.0);
stu[i].setDatabasescore(0.0);
stu[i].setNetworkscore(0.0);
luru();
}

}
}
//修改
static void xiugai()
{
System.out.println("***********************************************************");
System.out.println(" 石家庄铁道大学软件工程系学生学籍管理系统 2019 版 ");
System.out.println(" 学生考试成绩修改界面");
System.out.println("***********************************************************");
System.out.println(" 请输入学生学号:XXXXXXXX");
System.out.println("***********************************************************");
String scan_num2 = scan.next();
for(i=0;i<6;i++)
{
if(scan_num2.equals(stu[i].getStunumber()))
{
tag=false;
break;
}
}
if(tag==true)
{
System.out.println("学号不存在");
xiugai();
}
else
{
System.out.println("***********************************************************");
System.out.println(" 石家庄铁道大学软件工程系学生学籍管理系统 2019 版 ");
System.out.println(" 学生考试成绩录入");
System.out.println("***********************************************************");
System.out.println(" 学生学号:"+scan_num2);
System.out.println(" 学生姓名:"+stu[i].getName());
System.out.println(" 1.高等数学成绩:"+stu[i].getMathematicsscore());
System.out.println(" 2.英语成绩:"+stu[i].getEnglishiscore());
System.out.println(" 3.计算机网络成绩:"+stu[i].getNetworkscore());
System.out.println(" 4.数据库成绩:"+stu[i].getDatabasescore());
System.out.println(" 5.软件工程成绩:"+stu[i].getSoftwarescore());
System.out.println("***********************************************************");
int xuanze=scan.nextInt();
double xiugai=0.0;
switch(xuanze) {
case 1:
System.out.println("***********************************************************");
System.out.println(" 石家庄铁道大学软件工程系学生学籍管理系统 2019 版 ");
System.out.println(" 学生考试成绩录入界面");
System.out.println("***********************************************************");
System.out.println(" 学生学号:"+scan_num2);
System.out.println(" 学生姓名:"+stu[i].getName());
System.out.println(" 请输入修改后高等数学成绩:XXX");
xiugai=stu[i].getMathematicsscore();
stu[i].setMathematicsscore(scan.nextDouble());break;
case 2:
System.out.println("***********************************************************");
System.out.println(" 石家庄铁道大学软件工程系学生学籍管理系统 2019 版 ");
System.out.println(" 学生考试成绩录入界面");
System.out.println("***********************************************************");
System.out.println(" 学生学号:"+scan_num2);
System.out.println(" 学生姓名:"+stu[i].getName());
System.out.println(" 请输入修改后英语成绩:XXX");
xiugai=stu[i].getEnglishiscore();
stu[i].setEnglishiscore(scan.nextDouble());break;
case 3:
System.out.println("***********************************************************");
System.out.println(" 石家庄铁道大学软件工程系学生学籍管理系统 2019 版 ");
System.out.println(" 学生考试成绩录入界面");
System.out.println("***********************************************************");
System.out.println(" 学生学号:"+scan_num2);
System.out.println(" 学生姓名:"+stu[i].getName());
System.out.println(" 请输入修改后计算机网络成绩:XXX");
xiugai=stu[i].getNetworkscore();
stu[i].setNetworkscore(scan.nextDouble());break;
case 4:
System.out.println("***********************************************************");
System.out.println(" 石家庄铁道大学软件工程系学生学籍管理系统 2019 版 ");
System.out.println(" 学生考试成绩录入界面");
System.out.println("***********************************************************");
System.out.println(" 学生学号:"+scan_num2);
System.out.println(" 学生姓名:"+stu[i].getName());
System.out.println(" 请输入修改后数据库成绩:XXX");
xiugai=stu[i].getDatabasescore();
stu[i].setDatabasescore(scan.nextDouble());break;
case 5:
System.out.println("***********************************************************");
System.out.println(" 石家庄铁道大学软件工程系学生学籍管理系统 2019 版 ");
System.out.println(" 学生考试成绩录入界面");
System.out.println("***********************************************************");
System.out.println(" 学生学号:"+scan_num2);
System.out.println(" 学生姓名:"+stu[i].getName());
System.out.println(" 请输入修改后软件工程成绩:XXX");
xiugai=stu[i].getSoftwarescore();
stu[i].setSoftwarescore(scan.nextDouble());break;
}
System.out.println("***********************************************************");
System.out.println(" 石家庄铁道大学软件工程系学生学籍管理系统 2019 版 ");
System.out.println(" 学生考试成绩录入");
System.out.println("***********************************************************");
System.out.println(" 学生学号:"+scan_num2);
System.out.println(" 学生姓名:"+stu[i].getName());
System.out.println(" 1.高等数学成绩:"+stu[i].getMathematicsscore());
System.out.println(" 2.英语成绩:"+stu[i].getEnglishiscore());
System.out.println(" 3.计算机网络成绩:"+stu[i].getNetworkscore());
System.out.println(" 4.数据库成绩:"+stu[i].getDatabasescore());
System.out.println(" 5.软件工程成绩:"+stu[i].getSoftwarescore());
System.out.println(" 该学生成绩已修改完毕,是否提交(Y/N)");
System.out.println("***********************************************************");
String y= scan.next();
//输入完确认
if(y=="Y")
{
manu();
}
else if(y=="N")
{
switch(xuanze) {
case 1:stu[i].setMathematicsscore(xiugai);break;
case 2:stu[i].setEnglishiscore(xiugai);break;
case 3:stu[i].setNetworkscore(xiugai);break;
case 4:stu[i].setDatabasescore(xiugai);break;
case 5:stu[i].setSoftwarescore(xiugai);break;
}
xiugai();
}
}
}
//绩点
static void jidian()
{
System.out.println("***********************************************************");
System.out.println(" 石家庄铁道大学软件工程系学生学籍管理系统 2019 版 ");
System.out.println(" 学生考试成绩绩点计算界面");
System.out.println("***********************************************************");
System.out.println(" 请输入学生学号:XXXXXXXX");
System.out.println("***********************************************************");
String scan_num3 = scan.next();
for(i=0;i<6;i++)
{
if(scan_num3.equals(stu[i].getStunumber()))
{
tag=false;
break;
}
}
if(tag==true)
{
System.out.println("学号不存在");
jidian();
}
else
{
System.out.println("***********************************************************");
System.out.println(" 石家庄铁道大学软件工程系学生学籍管理系统 2019 版 ");
System.out.println(" 学生考试成绩绩点计算界面");
System.out.println("***********************************************************");
System.out.println(" 学生学号:"+scan_num3);
System.out.println(" 学生姓名:"+stu[i].getName());
System.out.println(" 1.高等数学绩点:"+js(stu[i].getMathematicsscore()));
System.out.println(" 2.英语绩点:"+js(stu[i].getEnglishiscore()));
System.out.println(" 3.计算机网络绩点:"+js(stu[i].getNetworkscore()));
System.out.println(" 4.数据库绩点:"+js(stu[i].getDatabasescore()));
System.out.println(" 5.软件工程绩点:"+js(stu[i].getSoftwarescore()));
double pj=0.0;
pj=(js(stu[i].getMathematicsscore())*4.0+js(stu[i].getEnglishiscore())*3.0+js(stu[i].getNetworkscore())*4.0
+js(stu[i].getDatabasescore())*3.0+js(stu[i].getSoftwarescore())*2.0)/(16.0);
if(pj>=2.0)
{
System.out.println(" 你的平均学分绩点为:"+(double)Math.round(pj*100)/100);
System.out.println(" 您已合格");

}
else
{
System.out.println(" 你的平均学分绩点为:"+(double)Math.round(pj*100)/100);
System.out.println(" 您未合格");

}

System.out.println("***********************************************************");
}

}
static public double js(Double cj)
{
double xf=0.0;
if(cj>=90)
xf=4.0;
else if(cj>=85)
xf=3.7;
else if(cj>=82)
xf=3.3;
else if(cj>=78)
xf=3.0;
else if(cj>=75)
xf=2.7;
else if(cj>=72)
xf=2.3;
else if(cj>=68)
xf=2.0;
else if(cj>=66)
xf=1.7;
else if(cj>=64)
xf=1.5;
else if(cj>=60)
xf=1.0;
else
xf=0;
return xf;
}
}

这就是我们所做的java的信息管理系统,主要运用了两个大类。管理类做了四个部分,只建立了能够输入6个学生的信息。我感觉其中最难做的就是成绩绩点的东西。相关的分数的计算感觉写程序有点难度。

信息管理java的更多相关文章

  1. Spark案例分析

    一.需求:计算网页访问量前三名 import org.apache.spark.rdd.RDD import org.apache.spark.{SparkConf, SparkContext} /* ...

  2. Java课程设计——学生基本信息管理

    1.团队名称.团队成员介绍 团队名称:学生基本信息管理设计小组 团队成员:花雨芸(组长)--负责管理界面的编写 丁蓉(组员)--负责登陆的设计编写 2.项目git地址 https://git.osch ...

  3. Java类集综合练习——信息管理(增、删、改、查)

    一.实现功能——模拟学生选课功能 1.选择课程 2.修改所选课程 二.实现功能——模拟学生信息管理功能 1.添加学生信息 2.修改学生信息 二.主要代码(在同一个包里) 1.课程类 public cl ...

  4. Java项目之客户信息管理软件

    模拟实现基于文本界面的客户信息管理软件,该软件能够实现对客户对象的插入. 修改和删除(用数组实现),并能够打印客户明细表. 项目采用分级菜单方式.主菜单如下: “添加客户”的界面及操作过程如下所示: ...

  5. 098 01 Android 零基础入门 02 Java面向对象 03 综合案例(学生信息管理) 02 案例分析及实现 02 编写并测试Subject类

    098 01 Android 零基础入门 02 Java面向对象 03 综合案例(学生信息管理) 02 案例分析及实现 02 编写并测试Subject类 本文知识点:编写并测试Subject类 说明: ...

  6. 099 01 Android 零基础入门 02 Java面向对象 03 综合案例(学生信息管理) 02 案例分析及实现 03 编写并测试Student类

    099 01 Android 零基础入门 02 Java面向对象 03 综合案例(学生信息管理) 02 案例分析及实现 03 编写并测试Student类 本文知识点:编写并测试Subject类 说明: ...

  7. 101 01 Android 零基础入门 02 Java面向对象 03 综合案例(学生信息管理) 02 案例分析及实现 05 通过方法实现学生类与专业类关联——方案二

    101 01 Android 零基础入门 02 Java面向对象 03 综合案例(学生信息管理) 02 案例分析及实现 05 通过方法实现学生类与专业类关联--方案二 本文知识点:通过方法实现学生类与 ...

  8. Java课程设计-学生基本信息管理 201521123036

    团队课程设计博客链接 团队博客链接 个人负责模块或任务说明 个人负责模块 任务说明 用户登录,注册 登录,注册,判断用户是否存在,添加用户 学生信息管理菜单 按钮,跳转相应界面,退出程序 学生信息添加 ...

  9. JAVA课设 学生基本信息管理 团队博客

    1.成员 邹其元 网络1512 201521123060 杨钧宇 网络1512 201521123062 2.项目Git地址 团队项目码云地址 //添加截图 3. 项目git提交记录截图(要体现出每个 ...

随机推荐

  1. 16-1 djanjo介绍

    一 web框架的本质 1用户的浏览器(socket客户端) 和 网站的服务器(socket服务端)之间 2 HTTP协议: 1.1 请求(request) 1.2. 响应(response) 3 we ...

  2. 现代IM系统中的消息系统架构 - 模型篇

    前言 在架构篇中我们介绍了现代IM消息系统的架构,介绍了Timeline的抽象模型以及基于Timeline模型构建的一个支持『消息漫游』.『多端同步』和『消息检索』多种高级功能的消息系统的典型架构.架 ...

  3. @雅礼集训01/13 - T1@ union

    目录 @description@ @solution@ @part - 1@ @part - 2@ @part - 3@ @accepted code@ @details@ @description@ ...

  4. oracle的group by用法

    原文链接:https://www.cnblogs.com/Each-Person-Got-a-Dream/p/8946961.html sql如下: select min(es.sku_price) ...

  5. oracle多个平等的索引

    当SQL语句的执行路径可以使用分布在多个表上的多个索引时, ORACLE会同时使用多个索引并在运行时对它们的记录进行合并, 检索出仅对全部索引有效的记录. 在ORACLE选择执行路径时,唯一性索引的等 ...

  6. JAVA之NIO按行读写大文件,完美解决中文乱码问题

    ;//一次读取的字节长度 File fin = new File("D:\\test\\20160622_627975.txt");//读取的文件 File fout = new  ...

  7. 列出display的值,说明他们的作用。position的值, relative和 absolute定位原点是?

    display的值: block 像块类型元素一样显示. none 像行内元素类型一样显示. inline-block 像行内元素一样显示, 但其内容像块类型元素一样显示. list-item 像块类 ...

  8. H3C 帧中继数据链路标识

  9. Python--day41--递归锁Rlock

    1,递归锁Rlock:递归锁是为了解决死锁问题,且递归锁的特点是在同一个线程中可以被acquire()多次 多个acquire()在递归锁中不会阻塞,而互斥锁Lock就会阻塞 代码示例: from t ...

  10. 【codeforces 766C】Mahmoud and a Message

    time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard o ...