博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
java第一次测验
阅读量:5244 次
发布时间:2019-06-14

本文共 21888 字,大约阅读时间需要 72 分钟。

package kaoshi;

 

import java.util.Scanner;

 

public class ScoreManagement {

       static int t=0;

       static int sum=5;

       static Scanner sc=new Scanner(System.in);

       static ScoreInformation[] a = new ScoreInformation[1000];

public static int systemMenu() {

       System.out.println("*************************************************************** \n" +

                     "               石家庄铁道大学信息科学与技术学院 \n" +

                     "                    学生学籍信息管理系统 2019版 \n" +

                     "**************************************************************** \n" +

                     "                    1、 学生考试成绩录入; \n" +

                     "                    2、 学生考试成绩修改; \n" +

                     "                    3、 计算学生成绩绩点; \n" +

                     "                    4、 退出学籍管理系统; \n" +

                     "****************************************************************");

       int ch;

       //System.out.println("请选择:");

       ch = sc.nextInt();

       return ch;      

       }

 

public static String inputMenu() {

      

       String stunumber1;

       System.out.println("*************************************************************** \n" +

                     "          石家庄铁道大学软件工程系学生学籍管理系统 2019 版 \n" +

                     "                                学生考试成绩录入 \n" +

                     "**************************************************************** \n" +

                     "请输入学生学号(学号必须是八位):");

       stunumber1=sc.next();

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

                     return stunumber1;

}

public static void menu1() {

       double b=0.0;

      

       System.out.println("*************************************************************** \n" +

                     "          石家庄铁道大学软件工程系学生学籍管理系统 2019 版 \n" +

                     "                                学生考试成绩录入 \n" +

                     "**************************************************************** \n" +

                     "                         学生学号:"+a[t].getStunumber()+"\n"+

                     "                         学生姓名:"+a[t].getName()+"\n"+

                    

                     "                  请输入高等数学成绩:");

       b=sc.nextDouble();

       a[t].setMathematicsscore(b);

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

                     menu2();

}

 

public static void menu2() {

       double b=0.0;

       System.out.println("*************************************************************** \n" +

                     "          石家庄铁道大学软件工程系学生学籍管理系统 2019 版 \n" +

                     "                                学生考试成绩录入 \n" +

                     "**************************************************************** \n" +

                     "                         学生学号:"+a[t].getStunumber()+"\n"+

                     "                         学生姓名:"+a[t].getName()+"\n"+

                    

                     "                    高等数学成绩:"+a[t].getMathematicsscore()+"\n"+

                     "            请输入大学英语成绩:");

       b=sc.nextDouble();

       a[t].setEnglishiscore(b);

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

                     menu3();

}

 

public static void menu3() {

       double b=0.0;

       System.out.println("*************************************************************** \n" +

                     "          石家庄铁道大学软件工程系学生学籍管理系统 2019 版 \n" +

                     "                                学生考试成绩录入 \n" +

                     "**************************************************************** \n" +

                     "                         学生学号:"+a[t].getStunumber()+"\n"+

                     "                         学生姓名:"+a[t].getName()+"\n"+

                    

                     "                    高等数学成绩:"+a[t].getMathematicsscore()+"\n"+

                     "                    大学英语成绩:"+a[t].getEnglishiscore()+"\n"+

                     "           请输入计算机网络成绩:");

       b=sc.nextDouble();

       a[t].setNetworkscore(b);

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

 

                     menu4();

}

 

public static void menu4() {

       double b=0.0;

       System.out.println("*************************************************************** \n" +

                     "          石家庄铁道大学软件工程系学生学籍管理系统 2019 版 \n" +

                     "                                学生考试成绩录入 \n" +

                     "**************************************************************** \n" +

                     "                         学生学号:"+a[t].getStunumber()+"\n"+

                     "                         学生姓名:"+a[t].getName()+"\n"+

                    

                     "                    高等数学成绩:"+a[t].getMathematicsscore()+"\n"+

                     "                    大学英语成绩:"+a[t].getEnglishiscore()+"\n"+

                     "                 计算机网络成绩:"+a[t].getNetworkscore()+"\n"+

                     "                 请输入数据库成绩:");

       b=sc.nextDouble();

       a[t].setDatabasescore(b);

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

                     menu5();

}

 

public static void menu5() {

       double b=0.0;

       System.out.println("*************************************************************** \n" +

                     "          石家庄铁道大学软件工程系学生学籍管理系统 2019 版 \n" +

                     "                                学生考试成绩录入 \n" +

                     "**************************************************************** \n" +

                     "                         学生学号:"+a[t].getStunumber()+"\n"+

                     "                         学生姓名:"+a[t].getName()+"\n"+

                    

                     "                    高等数学成绩:"+a[t].getMathematicsscore()+"\n"+

                     "                    大学英语成绩:"+a[t].getEnglishiscore()+"\n"+

                     "                 计算机网络成绩:"+a[t].getNetworkscore()+"\n"+

                     "                        数据库成绩:"+a[t].getDatabasescore()+"\n"+

                     "                 请输入软件工程成绩:");

       b=sc.nextDouble();

       a[t].setSoftwarescore(b);

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

                     menu6();

}

 

public static void menu6() {

       String b;

       System.out.println("*************************************************************** \n" +

                     "          石家庄铁道大学软件工程系学生学籍管理系统 2019 版 \n" +

                     "                                学生考试成绩录入 \n" +

                     "**************************************************************** \n" +

                     "                         学生学号:"+a[t].getStunumber()+"\n"+

                     "                         学生姓名:"+a[t].getName()+"\n"+

                    

                     "                    高等数学成绩:"+a[t].getMathematicsscore()+"\n"+

                     "                    大学英语成绩:"+a[t].getEnglishiscore()+"\n"+

                     "                 计算机网络成绩:"+a[t].getNetworkscore()+"\n"+

                     "                        数据库成绩:"+a[t].getDatabasescore()+"\n"+

                     "                    软件工程成绩:"+a[t].getSoftwarescore()+"\n"+

                     "该学生的成绩已录入,是否提交(Y/N)");

       b=sc.next();

       if(b.compareTo("N")==0) {

              a[t]=new ScoreInformation(a[t].getStunumber(),a[t].getName(),0.0,0.0,0.0,0.0,0.0);

              luru();

       }

       else {

              luru();

       }

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

                    

}

 

public static void luru() {

       int f=0;

       String stunumber2=inputMenu();

       for(int i=0;i<5;i++) {

              if(a[i].getStunumber().compareTo(stunumber2)==0) {

                     t=i;

                     menu1();

                     break;

              }

             

       }

       if(f==0) {

              System.out.println("该学号不存在!");

              stunumber2=inputMenu();

              luru();

              return;

       }

      

      

}

 

 

public static void fristcreate() {

       a[0]=new ScoreInformation("20183544","王正帅",0.0,0.0,0.0,0.0,0.0);

       a[1]=new ScoreInformation("20183545","万佳俊",0.0,0.0,0.0,0.0,0.0);

       a[2]=new ScoreInformation("20183546","杨晓",0.0,0.0,0.0,0.0,0.0);

       a[3]=new ScoreInformation("20183547","崔星宇",0.0,0.0,0.0,0.0,0.0);

       a[4]=new ScoreInformation("20183548","韩勇",0.0,0.0,0.0,0.0,0.0);

      

}

 

 

public static void tuichu() {

       System.out.println("*************************************************************** \n" +

                     "谢谢使用石家庄铁道大学软件工程系学生学籍管理系统 2019 版\n"+

                     "                                 制作人:韩勇\n"+

                     "****************************************************************");

}

 

public static String gaiMenu() {

      

       String stunumber1;

       System.out.println("*************************************************************** \n" +

                     "          石家庄铁道大学软件工程系学生学籍管理系统 2019 版 \n" +

                     "                                学生考试成绩修改 \n" +

                     "**************************************************************** \n" +

                     "请输入学生学号(学号必须是八位):");

       stunumber1=sc.next();

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

                     return stunumber1;

}

 

public static void  gai() {

int f=0;   

   String stunumber2=gaiMenu();

       for(int i=0;i<5;i++) {

              if(a[i].getStunumber().compareTo(stunumber2)==0) {

                     t=i;

                     f=1;

                     int z=menu10();

                     while(true) {

                            switch(z) {

                            case 1:menu11();break;

                            case 2:menu12();break;

                            case 3:menu13();break;

                            case 4:menu14();break;

                            case 5:menu15();break;

                    

                            }

                            break;

                     }

                    

              }

             

       }

       if(f==0) {

              System.out.println("该学号不存在!");

              stunumber2=inputMenu();

              luru();

              return;

       }

}

public static int  menu10() {

       int f=0;

       System.out.println("*************************************************************** \n" +

                     "          石家庄铁道大学软件工程系学生学籍管理系统 2019 版 \n" +

                     "                                学生考试成绩录入 \n" +

                     "**************************************************************** \n" +

                     "                         学生学号:"+a[t].getStunumber()+"\n"+

                     "                         学生姓名:"+a[t].getName()+"\n"+

                    

                     "           1,等数学成绩:"+a[t].getMathematicsscore()+"\n"+

                     "           2,大学英语成绩:"+a[t].getEnglishiscore()+"\n"+

                     "           3,计算机网络成绩:"+a[t].getNetworkscore()+"\n"+

                     "           4, 数据库成绩:"+a[t].getDatabasescore()+"\n"+

                     "           5,软件工程成绩:"+a[t].getSoftwarescore()+"\n"+

                     "**************************************************************** \\n");

    f=sc.nextInt();

    return f;

}

 

public static void menu16() {

       String b;

       System.out.println("*************************************************************** \n" +

                     "          石家庄铁道大学软件工程系学生学籍管理系统 2019 版 \n" +

                     "                                学生考试成绩录入 \n" +

                     "**************************************************************** \n" +

                     "                         学生学号:"+a[t].getStunumber()+"\n"+

                     "                         学生姓名:"+a[t].getName()+"\n"+

                    

                     "                    高等数学成绩:"+a[t].getMathematicsscore()+"\n"+

                     "                    大学英语成绩:"+a[t].getEnglishiscore()+"\n"+

                     "                 计算机网络成绩:"+a[t].getNetworkscore()+"\n"+

                     "                        数据库成绩:"+a[t].getDatabasescore()+"\n"+

                     "                    软件工程成绩:"+a[t].getSoftwarescore()+"\n"+

                     "该学生的成绩已修改完毕,是否提交(Y/N)");

       b=sc.next();

       if(b.compareTo("N")==0) {

              a[t]=new ScoreInformation(a[t].getStunumber(),a[t].getName(),0.0,0.0,0.0,0.0,0.0);

              gai();

       }

       else {

              return;

       }

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

                    

}

 

public static void menu12() {

       double b=0.0;

      

       System.out.println("*************************************************************** \n" +

                     "          石家庄铁道大学软件工程系学生学籍管理系统 2019 版 \n" +

                     "                                学生考试成绩录入 \n" +

                     "**************************************************************** \n" +

                     "                         学生学号:"+a[t].getStunumber()+"\n"+

                     "                         学生姓名:"+a[t].getName()+"\n"+

                    

                     "                  请输入修改后的英语成绩:");

       b=sc.nextDouble();

       a[t].setMathematicsscore(b);

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

                     menu16();

}

 

public static void menu13() {

       double b=0.0;

      

       System.out.println("*************************************************************** \n" +

                     "          石家庄铁道大学软件工程系学生学籍管理系统 2019 版 \n" +

                     "                                学生考试成绩录入 \n" +

                     "**************************************************************** \n" +

                     "                         学生学号:"+a[t].getStunumber()+"\n"+

                     "                         学生姓名:"+a[t].getName()+"\n"+

                    

                     "                  请输入修改后的计算机网络成绩:");

       b=sc.nextDouble();

       a[t].setNetworkscore(b);

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

                     menu16();

}

public static void menu14() {

       double b=0.0;

      

       System.out.println("*************************************************************** \n" +

                     "          石家庄铁道大学软件工程系学生学籍管理系统 2019 版 \n" +

                     "                                学生考试成绩录入 \n" +

                     "**************************************************************** \n" +

                     "                         学生学号:"+a[t].getStunumber()+"\n"+

                     "                         学生姓名:"+a[t].getName()+"\n"+

                    

                     "                  请输入修改后的数据库成绩:");

       b=sc.nextDouble();

       a[t].setDatabasescore(b);

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

                     menu16();

}

public static void menu15() {

       double b=0.0;

      

       System.out.println("*************************************************************** \n" +

                     "          石家庄铁道大学软件工程系学生学籍管理系统 2019 版 \n" +

                     "                                学生考试成绩录入 \n" +

                     "**************************************************************** \n" +

                     "                         学生学号:"+a[t].getStunumber()+"\n"+

                     "                         学生姓名:"+a[t].getName()+"\n"+

                    

                     "                  请输入修改后的软件工程成绩:");

       b=sc.nextDouble();

       a[t].setSoftwarescore(b);

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

                     menu16();

}

public static void menu11() {

       double b=0.0;

      

       System.out.println("*************************************************************** \n" +

                     "          石家庄铁道大学软件工程系学生学籍管理系统 2019 版 \n" +

                     "                                学生考试成绩录入 \n" +

                     "**************************************************************** \n" +

                     "                         学生学号:"+a[t].getStunumber()+"\n"+

                     "                         学生姓名:"+a[t].getName()+"\n"+

                    

                     "                  请输入修改后的高等数学成绩:");

       b=sc.nextDouble();

       a[t].setMathematicsscore(b);

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

                     menu16();

}

 

public static void menu21() {

       String str;

      

       System.out.println("*************************************************************** \n" +

                     "          石家庄铁道大学软件工程系学生学籍管理系统 2019 版 \n" +

                     "                                学生考试成绩基点计算 \n" +

                     "**************************************************************** \n" +

                    

                     "                  请输入学生学号:");

       str=sc.next();

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

      

      

}

 

public static void main(String[] args) {

       fristcreate() ;

      

       int c1=0;

       c1=systemMenu();

       while(true){

              switch(c1) {

              case 1:luru();break;

              case 2:gai();break;

              case 3:break;

              case 4:tuichu();return;

              default :System.out.println("该选型不存在");break;

              }

package kaoshi;

 

import java.util.Scanner;

 

public class ScoreManagement {

       static int t=0;

       static int sum=5;

       static Scanner sc=new Scanner(System.in);

       static ScoreInformation[] a = new ScoreInformation[1000];

public static int systemMenu() {

       System.out.println("*************************************************************** \n" +

                     "               石家庄铁道大学信息科学与技术学院 \n" +

                     "                    学生学籍信息管理系统 2019版 \n" +

                     "**************************************************************** \n" +

                     "                    1、 学生考试成绩录入; \n" +

                     "                    2、 学生考试成绩修改; \n" +

                     "                    3、 计算学生成绩绩点; \n" +

                     "                    4、 退出学籍管理系统; \n" +

                     "****************************************************************");

       int ch;

       //System.out.println("请选择:");

       ch = sc.nextInt();

       return ch;      

       }

 

public static String inputMenu() {

      

       String stunumber1;

       System.out.println("*************************************************************** \n" +

                     "          石家庄铁道大学软件工程系学生学籍管理系统 2019 版 \n" +

                     "                                学生考试成绩录入 \n" +

                     "**************************************************************** \n" +

                     "请输入学生学号(学号必须是八位):");

       stunumber1=sc.next();

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

                     return stunumber1;

}

public static void menu1() {

       double b=0.0;

      

       System.out.println("*************************************************************** \n" +

                     "          石家庄铁道大学软件工程系学生学籍管理系统 2019 版 \n" +

                     "                                学生考试成绩录入 \n" +

                     "**************************************************************** \n" +

                     "                         学生学号:"+a[t].getStunumber()+"\n"+

                     "                         学生姓名:"+a[t].getName()+"\n"+

                    

                     "                  请输入高等数学成绩:");

       b=sc.nextDouble();

       a[t].setMathematicsscore(b);

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

                     menu2();

}

 

public static void menu2() {

       double b=0.0;

       System.out.println("*************************************************************** \n" +

                     "          石家庄铁道大学软件工程系学生学籍管理系统 2019 版 \n" +

                     "                                学生考试成绩录入 \n" +

                     "**************************************************************** \n" +

                     "                         学生学号:"+a[t].getStunumber()+"\n"+

                     "                         学生姓名:"+a[t].getName()+"\n"+

                    

                     "                    高等数学成绩:"+a[t].getMathematicsscore()+"\n"+

                     "            请输入大学英语成绩:");

       b=sc.nextDouble();

       a[t].setEnglishiscore(b);

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

                     menu3();

}

 

public static void menu3() {

       double b=0.0;

       System.out.println("*************************************************************** \n" +

                     "          石家庄铁道大学软件工程系学生学籍管理系统 2019 版 \n" +

                     "                                学生考试成绩录入 \n" +

                     "**************************************************************** \n" +

                     "                         学生学号:"+a[t].getStunumber()+"\n"+

                     "                         学生姓名:"+a[t].getName()+"\n"+

                    

                     "                    高等数学成绩:"+a[t].getMathematicsscore()+"\n"+

                     "                    大学英语成绩:"+a[t].getEnglishiscore()+"\n"+

                     "           请输入计算机网络成绩:");

       b=sc.nextDouble();

       a[t].setNetworkscore(b);

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

 

                     menu4();

}

 

public static void menu4() {

       double b=0.0;

       System.out.println("*************************************************************** \n" +

                     "          石家庄铁道大学软件工程系学生学籍管理系统 2019 版 \n" +

                     "                                学生考试成绩录入 \n" +

                     "**************************************************************** \n" +

                     "                         学生学号:"+a[t].getStunumber()+"\n"+

                     "                         学生姓名:"+a[t].getName()+"\n"+

                    

                     "                    高等数学成绩:"+a[t].getMathematicsscore()+"\n"+

                     "                    大学英语成绩:"+a[t].getEnglishiscore()+"\n"+

                     "                 计算机网络成绩:"+a[t].getNetworkscore()+"\n"+

                     "                 请输入数据库成绩:");

       b=sc.nextDouble();

       a[t].setDatabasescore(b);

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

                     menu5();

}

 

public static void menu5() {

       double b=0.0;

       System.out.println("*************************************************************** \n" +

                     "          石家庄铁道大学软件工程系学生学籍管理系统 2019 版 \n" +

                     "                                学生考试成绩录入 \n" +

                     "**************************************************************** \n" +

                     "                         学生学号:"+a[t].getStunumber()+"\n"+

                     "                         学生姓名:"+a[t].getName()+"\n"+

                    

                     "                    高等数学成绩:"+a[t].getMathematicsscore()+"\n"+

                     "                    大学英语成绩:"+a[t].getEnglishiscore()+"\n"+

                     "                 计算机网络成绩:"+a[t].getNetworkscore()+"\n"+

                     "                        数据库成绩:"+a[t].getDatabasescore()+"\n"+

                     "                 请输入软件工程成绩:");

       b=sc.nextDouble();

       a[t].setSoftwarescore(b);

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

                     menu6();

}

 

public static void menu6() {

       String b;

       System.out.println("*************************************************************** \n" +

                     "          石家庄铁道大学软件工程系学生学籍管理系统 2019 版 \n" +

                     "                                学生考试成绩录入 \n" +

                     "**************************************************************** \n" +

                     "                         学生学号:"+a[t].getStunumber()+"\n"+

                     "                         学生姓名:"+a[t].getName()+"\n"+

                    

                     "                    高等数学成绩:"+a[t].getMathematicsscore()+"\n"+

                     "                    大学英语成绩:"+a[t].getEnglishiscore()+"\n"+

                     "                 计算机网络成绩:"+a[t].getNetworkscore()+"\n"+

                     "                        数据库成绩:"+a[t].getDatabasescore()+"\n"+

                     "                    软件工程成绩:"+a[t].getSoftwarescore()+"\n"+

                     "该学生的成绩已录入,是否提交(Y/N)");

       b=sc.next();

       if(b.compareTo("N")==0) {

              a[t]=new ScoreInformation(a[t].getStunumber(),a[t].getName(),0.0,0.0,0.0,0.0,0.0);

              luru();

       }

       else {

              luru();

       }

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

                    

}

 

public static void luru() {

       int f=0;

       String stunumber2=inputMenu();

       for(int i=0;i<5;i++) {

              if(a[i].getStunumber().compareTo(stunumber2)==0) {

                     t=i;

                     menu1();

                     break;

              }

             

       }

       if(f==0) {

              System.out.println("该学号不存在!");

              stunumber2=inputMenu();

              luru();

              return;

       }

      

      

}

 

 

public static void fristcreate() {

       a[0]=new ScoreInformation("20183544","王正帅",0.0,0.0,0.0,0.0,0.0);

       a[1]=new ScoreInformation("20183545","万佳俊",0.0,0.0,0.0,0.0,0.0);

       a[2]=new ScoreInformation("20183546","杨晓",0.0,0.0,0.0,0.0,0.0);

       a[3]=new ScoreInformation("20183547","崔星宇",0.0,0.0,0.0,0.0,0.0);

       a[4]=new ScoreInformation("20183548","韩勇",0.0,0.0,0.0,0.0,0.0);

      

}

 

 

public static void tuichu() {

       System.out.println("*************************************************************** \n" +

                     "谢谢使用石家庄铁道大学软件工程系学生学籍管理系统 2019 版\n"+

                     "                                 制作人:韩勇\n"+

                     "****************************************************************");

}

 

public static String gaiMenu() {

      

       String stunumber1;

       System.out.println("*************************************************************** \n" +

                     "          石家庄铁道大学软件工程系学生学籍管理系统 2019 版 \n" +

                     "                                学生考试成绩修改 \n" +

                     "**************************************************************** \n" +

                     "请输入学生学号(学号必须是八位):");

       stunumber1=sc.next();

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

                     return stunumber1;

}

 

public static void  gai() {

int f=0;   

   String stunumber2=gaiMenu();

       for(int i=0;i<5;i++) {

              if(a[i].getStunumber().compareTo(stunumber2)==0) {

                     t=i;

                     f=1;

                     int z=menu10();

                     while(true) {

                            switch(z) {

                            case 1:menu11();break;

                            case 2:menu12();break;

                            case 3:menu13();break;

                            case 4:menu14();break;

                            case 5:menu15();break;

                    

                            }

                            break;

                     }

                    

              }

             

       }

       if(f==0) {

              System.out.println("该学号不存在!");

              stunumber2=inputMenu();

              luru();

              return;

       }

}

public static int  menu10() {

       int f=0;

       System.out.println("*************************************************************** \n" +

                     "          石家庄铁道大学软件工程系学生学籍管理系统 2019 版 \n" +

                     "                                学生考试成绩录入 \n" +

                     "**************************************************************** \n" +

                     "                         学生学号:"+a[t].getStunumber()+"\n"+

                     "                         学生姓名:"+a[t].getName()+"\n"+

                    

                     "           1,等数学成绩:"+a[t].getMathematicsscore()+"\n"+

                     "           2,大学英语成绩:"+a[t].getEnglishiscore()+"\n"+

                     "           3,计算机网络成绩:"+a[t].getNetworkscore()+"\n"+

                     "           4, 数据库成绩:"+a[t].getDatabasescore()+"\n"+

                     "           5,软件工程成绩:"+a[t].getSoftwarescore()+"\n"+

                     "**************************************************************** \\n");

    f=sc.nextInt();

    return f;

}

 

public static void menu16() {

       String b;

       System.out.println("*************************************************************** \n" +

                     "          石家庄铁道大学软件工程系学生学籍管理系统 2019 版 \n" +

                     "                                学生考试成绩录入 \n" +

                     "**************************************************************** \n" +

                     "                         学生学号:"+a[t].getStunumber()+"\n"+

                     "                         学生姓名:"+a[t].getName()+"\n"+

                    

                     "                    高等数学成绩:"+a[t].getMathematicsscore()+"\n"+

                     "                    大学英语成绩:"+a[t].getEnglishiscore()+"\n"+

                     "                 计算机网络成绩:"+a[t].getNetworkscore()+"\n"+

                     "                        数据库成绩:"+a[t].getDatabasescore()+"\n"+

                     "                    软件工程成绩:"+a[t].getSoftwarescore()+"\n"+

                     "该学生的成绩已修改完毕,是否提交(Y/N)");

       b=sc.next();

       if(b.compareTo("N")==0) {

              a[t]=new ScoreInformation(a[t].getStunumber(),a[t].getName(),0.0,0.0,0.0,0.0,0.0);

              gai();

       }

       else {

              return;

       }

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

                    

}

 

public static void menu12() {

       double b=0.0;

      

       System.out.println("*************************************************************** \n" +

                     "          石家庄铁道大学软件工程系学生学籍管理系统 2019 版 \n" +

                     "                                学生考试成绩录入 \n" +

                     "**************************************************************** \n" +

                     "                         学生学号:"+a[t].getStunumber()+"\n"+

                     "                         学生姓名:"+a[t].getName()+"\n"+

                    

                     "                  请输入修改后的英语成绩:");

       b=sc.nextDouble();

       a[t].setMathematicsscore(b);

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

                     menu16();

}

 

public static void menu13() {

       double b=0.0;

      

       System.out.println("*************************************************************** \n" +

                     "          石家庄铁道大学软件工程系学生学籍管理系统 2019 版 \n" +

                     "                                学生考试成绩录入 \n" +

                     "**************************************************************** \n" +

                     "                         学生学号:"+a[t].getStunumber()+"\n"+

                     "                         学生姓名:"+a[t].getName()+"\n"+

                    

                     "                  请输入修改后的计算机网络成绩:");

       b=sc.nextDouble();

       a[t].setNetworkscore(b);

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

                     menu16();

}

public static void menu14() {

       double b=0.0;

      

       System.out.println("*************************************************************** \n" +

                     "          石家庄铁道大学软件工程系学生学籍管理系统 2019 版 \n" +

                     "                                学生考试成绩录入 \n" +

                     "**************************************************************** \n" +

                     "                         学生学号:"+a[t].getStunumber()+"\n"+

                     "                         学生姓名:"+a[t].getName()+"\n"+

                    

                     "                  请输入修改后的数据库成绩:");

       b=sc.nextDouble();

       a[t].setDatabasescore(b);

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

                     menu16();

}

public static void menu15() {

       double b=0.0;

      

       System.out.println("*************************************************************** \n" +

                     "          石家庄铁道大学软件工程系学生学籍管理系统 2019 版 \n" +

                     "                                学生考试成绩录入 \n" +

                     "**************************************************************** \n" +

                     "                         学生学号:"+a[t].getStunumber()+"\n"+

                     "                         学生姓名:"+a[t].getName()+"\n"+

                    

                     "                  请输入修改后的软件工程成绩:");

       b=sc.nextDouble();

       a[t].setSoftwarescore(b);

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

                     menu16();

}

public static void menu11() {

       double b=0.0;

      

       System.out.println("*************************************************************** \n" +

                     "          石家庄铁道大学软件工程系学生学籍管理系统 2019 版 \n" +

                     "                                学生考试成绩录入 \n" +

                     "**************************************************************** \n" +

                     "                         学生学号:"+a[t].getStunumber()+"\n"+

                     "                         学生姓名:"+a[t].getName()+"\n"+

                    

                     "                  请输入修改后的高等数学成绩:");

       b=sc.nextDouble();

       a[t].setMathematicsscore(b);

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

                     menu16();

}

 

public static void menu21() {

       String str;

      

       System.out.println("*************************************************************** \n" +

                     "          石家庄铁道大学软件工程系学生学籍管理系统 2019 版 \n" +

                     "                                学生考试成绩基点计算 \n" +

                     "**************************************************************** \n" +

                    

                     "                  请输入学生学号:");

       str=sc.next();

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

      

      

}

 

public static void main(String[] args) {

       fristcreate() ;

      

       int c1=0;

       c1=systemMenu();

       while(true){

              switch(c1) {

              case 1:luru();break;

              case 2:gai();break;

              case 3:break;

              case 4:tuichu();return;

              default :System.out.println("该选型不存在");break;

              }

              c1=systemMenu();

       }

      

}

 

}

              c1=systemMenu();

       }

      

}

 

}

转载于:https://www.cnblogs.com/hanyong123/p/11515440.html

你可能感兴趣的文章
第五次团队作业——第一次项目冲刺——Alpha版本
查看>>
tarjan(缩点)
查看>>
Lombok插件
查看>>
Linux上安装Libssh2
查看>>
自定义EL函数
查看>>
stm32的电源
查看>>
<转> ios开发学习笔记(这里一定有你想要的东西,全部免费)
查看>>
Android service 服务的应用之电话监听器以及短信监听器
查看>>
splice的多种用法
查看>>
[LeetCode] 655. Print Binary Tree 打印二叉树
查看>>
ZOJ 2724 Windows Message Queue (二叉堆,优先队列)
查看>>
HDU - 2066 一个人的旅行(最短路径)(模板)
查看>>
CentOS添加路由表
查看>>
20162304 2017-2018-1 《程序设计与数据结构》第二周学习总结
查看>>
九.python面向对象(双下方法内置方法)
查看>>
2018-09-12
查看>>
go:channel(未完)
查看>>
[JS]递归对象或数组
查看>>
CSS与Theme的作用——Asp.Net
查看>>
LeetCode(17) - Letter Combinations of a Phone Number
查看>>