学生学籍管理系统
Scoremanagement.java 文件
package test1;//信 刘虎1765243235
import java.util.Scanner;
public class ScoreManagement
{
static double sj;
static double yj;
static double jj;
static double gj;
static double rj;
static double pj;
import java.util.Scanner;
public class ScoreManagement
{
static double sj;
static double yj;
static double jj;
static double gj;
static double rj;
static double pj;
int i;
public static void main(String args[])
{
zhujiemian();
}
public static void tuichujiemian() //退出界面
{
System.out.println("***************************************************************");
System.out.println(" 谢谢使用石家庄铁道大学软件工程系学生学籍管理系统 ");
System.out.println(" 制作人:刘虎 ");
System.out.println("***************************************************************");
}
public static void zhujiemian()//主界面
{
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("***************************************************************");
ScoreInformatio stu1[]=new ScoreInformatio [5];
stu1[0].name="刘虎";
stu1[0].stunumber="20183652";
stu1[0].mathematicsscore=0.0;
stu1[0].englishiscore=0.0;
stu1[0].networkscore=0.0;
stu1[0].databasescore=0.0;
stu1[0].softwarescore=0.0;
Scanner input=new Scanner(System.in);
int j=input.nextInt();
int i;
switch(j)
{
case 1:chengjilurujiemain();
String number=input.next();
if(number==stu1[0].stunumber);
{
chengjilurujiemianer();
System.out.println(" 请输入高数成绩: ");
stu1[0].mathematicsscore=input.nextInt();
chengjilurujiemianer();
System.out.println(" 高数成绩为"+stu1[0].mathematicsscore+" ");
System.out.println(" 请输入大学英语成绩: ");
stu1[0].englishiscore=input.nextInt();
chengjilurujiemianer();
System.out.println(" 高数成绩为"+stu1[0].mathematicsscore+" ");
System.out.println(" 大学英语成绩为"+stu1[0].englishiscore+" ");
if(stu1[0].networkscore==0.0)
System.out.println(" 请输入计算机网络成绩: ");
stu1[0].networkscore=input.nextInt();
chengjilurujiemianer();
System.out.println(" 高数成绩为"+stu1[0].mathematicsscore+" ");
System.out.println(" 大学英语成绩为"+stu1[0].englishiscore+" ");
System.out.println(" 计算机网络成绩为"+stu1[0].networkscore+" ");
System.out.println(" 请输入数据结构成绩: ");
stu1[0].databasescore=input.nextInt();
chengjilurujiemianer();
System.out.println(" 高数成绩为"+stu1[0].mathematicsscore+" ");
System.out.println(" 大学英语成绩为"+stu1[0].englishiscore+" ");
System.out.println(" 计算机网络成绩为"+stu1[0].networkscore+" ");
System.out.println(" 数据结构成绩为"+stu1[0].databasescore+" ");
System.out.println(" 请输入软件工程成绩: ");
stu1[0].softwarescore=input.nextInt();
chengjilurujiemianer();
System.out.println(" 高数成绩为"+stu1[0].mathematicsscore+" ");
System.out.println(" 大学英语成绩为"+stu1[0].englishiscore+" ");
System.out.println(" 计算机网络成绩为"+stu1[0].networkscore+" ");
System.out.println(" 数据结构成绩为"+stu1[0].databasescore+" ");
System.out.println(" 软件工程成绩为"+stu1[0].softwarescore+" ");
System.out.println(" 该同学成绩录入完毕,是否提交(Y/N) ");
System.out.println("****************************************************************");
sj=jidian(stu1[0].mathematicsscore);
yj=jidian(stu1[0].englishiscore);
jj=jidian(stu1[0].networkscore);
gj=jidian(stu1[0].databasescore);
rj=jidian(stu1[0].softwarescore);
double pjj=(stu1[0].mathematicsscore*4+stu1[0].englishiscore*3+stu1[0].networkscore*4+stu1[0].databasescore*3+stu1[0].softwarescore*2)/16;
pj=jidian(pjj);
}
xuanze();
break;
case 2:xiugaichengji();
i=input.nextInt();
switch(i)
{
case 1: System.out.println(" 请输入修改后的高等数学成绩: ");
stu1[0].mathematicsscore=input.nextInt();
break;
case 2: System.out.println(" 请输入修改后的大学英语成绩: ");
stu1[0].englishiscore=input.nextInt();
break;
case 3: System.out.println(" 请输入修改后的计算机网络成绩: ");
stu1[0].networkscore=input.nextInt();
break;
case 4: System.out.println(" 请输入修改后的数据结构成绩: ");
stu1[0].databasescore=input.nextInt();
break;
case 5: System.out.println(" 请输入修改后的软件工程成绩: ");
stu1[0].softwarescore=input.nextInt();
break;
}
chengjilurujiemianer();
System.out.println(" 高数成绩为"+stu1[0].mathematicsscore+" ");
System.out.println(" 大学英语成绩为"+stu1[0].englishiscore+" ");
System.out.println(" 计算机网络成绩为"+stu1[0].networkscore+" ");
System.out.println(" 数据结构成绩为"+stu1[0].databasescore+" ");
System.out.println(" 软件工程成绩为"+stu1[0].softwarescore+" ");
System.out.println(" 该同学成绩录入完毕,是否提交(Y/N) ");
System.out.println("****************************************************************");
xuanze();
break;
case 3:
chengjijidian();
xuanze();
break;
case 4:
tuichujiemian();
break;











