java第一次测验

Posted hanyong123

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了java第一次测验相关的知识,希望对你有一定的参考价值。

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("*************************************************************** " +

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

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

                     "**************************************************************** " +

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

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

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

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

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

       int ch;

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

       ch = sc.nextInt();

       return ch;      

       }

 

public static String inputMenu() {

      

       String stunumber1;

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

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

                     "                                学生考试成绩录入 " +

                     "**************************************************************** " +

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

       stunumber1=sc.next();

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

                     return stunumber1;

}

public static void menu1() {

       double b=0.0;

      

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

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

                     "                                学生考试成绩录入 " +

                     "**************************************************************** " +

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

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

                    

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

       b=sc.nextDouble();

       a[t].setMathematicsscore(b);

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

                     menu2();

}

 

public static void menu2() {

       double b=0.0;

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

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

                     "                                学生考试成绩录入 " +

                     "**************************************************************** " +

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

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

                    

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

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

       b=sc.nextDouble();

       a[t].setEnglishiscore(b);

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

                     menu3();

}

 

public static void menu3() {

       double b=0.0;

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

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

                     "                                学生考试成绩录入 " +

                     "**************************************************************** " +

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

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

                    

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

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

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

       b=sc.nextDouble();

       a[t].setNetworkscore(b);

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

 

                     menu4();

}

 

public static void menu4() {

       double b=0.0;

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

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

                     "                                学生考试成绩录入 " +

                     "**************************************************************** " +

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

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

                    

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

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

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

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

       b=sc.nextDouble();

       a[t].setDatabasescore(b);

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

                     menu5();

}

 

public static void menu5() {

       double b=0.0;

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

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

                     "                                学生考试成绩录入 " +

                     "**************************************************************** " +

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

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

                    

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

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

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

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

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

       b=sc.nextDouble();

       a[t].setSoftwarescore(b);

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

                     menu6();

}

 

public static void menu6() {

       String b;

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

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

                     "                                学生考试成绩录入 " +

                     "**************************************************************** " +

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

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

                    

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

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

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

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

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

                     "该学生的成绩已录入,是否提交(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("*************************************************************** " +

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

                     "                                 制作人:韩勇 "+

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

}

 

public static String gaiMenu() {

      

       String stunumber1;

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

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

                     "                                学生考试成绩修改 " +

                     "**************************************************************** " +

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

       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("*************************************************************** " +

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

                     "                                学生考试成绩录入 " +

                     "**************************************************************** " +

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

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

                    

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

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

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

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

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

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

    f=sc.nextInt();

    return f;

}

 

public static void menu16() {

       String b;

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

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

                     "                                学生考试成绩录入 " +

                     "**************************************************************** " +

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

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

                    

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

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

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

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

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

                     "该学生的成绩已修改完毕,是否提交(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("*************************************************************** " +

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

                     "                                学生考试成绩录入 " +

                     "**************************************************************** " +

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

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

                    

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

       b=sc.nextDouble();

       a[t].setMathematicsscore(b);

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

                     menu16();

}

 

public static void menu13() {

       double b=0.0;

      

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

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

                     "                                学生考试成绩录入 " +

                     "**************************************************************** " +

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

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

                    

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

       b=sc.nextDouble();

       a[t].setNetworkscore(b);

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

                     menu16();

}

public static void menu14() {

       double b=0.0;

      

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

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

                     "                                学生考试成绩录入 " +

                     "**************************************************************** " +

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

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

                    

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

       b=sc.nextDouble();

       a[t].setDatabasescore(b);

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

                     menu16();

}

public static void menu15() {

       double b=0.0;

      

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

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

                     "                                学生考试成绩录入 " +

                     "**************************************************************** " +

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

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

                    

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

       b=sc.nextDouble();

       a[t].setSoftwarescore(b);

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

                     menu16();

}

public static void menu11() {

       double b=0.0;

      

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

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

                     "                                学生考试成绩录入 " +

                     "**************************************************************** " +

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

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

                    

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

       b=sc.nextDouble();

       a[t].setMathematicsscore(b);

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

                     menu16();

}

 

public static void menu21() {

       String str;

      

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

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

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

                     "**************************************************************** " +

                    

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

       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("*************************************************************** " +

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

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

                     "**************************************************************** " +

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

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

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

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

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

       int ch;

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

       ch = sc.nextInt();

       return ch;      

       }

 

public static String inputMenu() {

      

       String stunumber1;

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

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

                     "                                学生考试成绩录入 " +

                     "**************************************************************** " +

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

       stunumber1=sc.next();

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

                     return stunumber1;

}

public static void menu1() {

       double b=0.0;

      

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

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

                     "                                学生考试成绩录入 " +

                     "**************************************************************** " +

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

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

                    

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

       b=sc.nextDouble();

       a[t].setMathematicsscore(b);

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

                     menu2();

}

 

public static void menu2() {

       double b=0.0;

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

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

                     "                                学生考试成绩录入 " +

                     "**************************************************************** " +

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

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

                    

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

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

       b=sc.nextDouble();

       a[t].setEnglishiscore(b);

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

                     menu3();

}

 

public static void menu3() {

       double b=0.0;

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

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

                     "                                学生考试成绩录入 " +

                     "**************************************************************** " +

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

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

                    

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

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

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

       b=sc.nextDouble();

       a[t].setNetworkscore(b);

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

 

                     menu4();

}

 

public static void menu4() {

       double b=0.0;

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

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

                     "                                学生考试成绩录入 " +

                     "**************************************************************** " +

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

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

                    

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

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

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

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

       b=sc.nextDouble();

       a[t].setDatabasescore(b);

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

                     menu5();

}

 

public static void menu5() {

       double b=0.0;

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

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

                     "                                学生考试成绩录入 " +

                     "**************************************************************** " +

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

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

                    

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

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

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

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

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

       b=sc.nextDouble();

       a[t].setSoftwarescore(b);

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

                     menu6();

}

 

public static void menu6() {

       String b;

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

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

                     "                                学生考试成绩录入 " +

                     "**************************************************************** " +

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

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

                    

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

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

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

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

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

                     "该学生的成绩已录入,是否提交(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("*************************************************************** " +

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

                     "                                 制作人:韩勇 "+

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

}

 

public static String gaiMenu() {

      

       String stunumber1;

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

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

                     "                                学生考试成绩修改 " +

                     "**************************************************************** " +

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

       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("*************************************************************** " +

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

                     "                                学生考试成绩录入 " +

                     "**************************************************************** " +

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

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

                    

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

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

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

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

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

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

    f=sc.nextInt();

    return f;

}

 

public static void menu16() {

       String b;

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

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

                     "                                学生考试成绩录入 " +

                     "**************************************************************** " +

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

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

                    

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

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

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

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

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

                     "该学生的成绩已修改完毕,是否提交(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("*************************************************************** " +

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

                     "                                学生考试成绩录入 " +

                     "**************************************************************** " +

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

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

                    

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

       b=sc.nextDouble();

       a[t].setMathematicsscore(b);

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

                     menu16();

}

 

public static void menu13() {

       double b=0.0;

      

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

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

                     "                                学生考试成绩录入 " +

                     "**************************************************************** " +

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

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

                    

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

       b=sc.nextDouble();

       a[t].setNetworkscore(b);

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

                     menu16();

}

public static void menu14() {

       double b=0.0;

      

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

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

                     "                                学生考试成绩录入 " +

                     "**************************************************************** " +

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

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

                    

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

       b=sc.nextDouble();

       a[t].setDatabasescore(b);

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

                     menu16();

}

public static void menu15() {

       double b=0.0;

      

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

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

                     "                                学生考试成绩录入 " +

                     "**************************************************************** " +

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

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

                    

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

       b=sc.nextDouble();

       a[t].setSoftwarescore(b);

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

                     menu16();

}

public static void menu11() {

       double b=0.0;

      

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

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

                     "                                学生考试成绩录入 " +

                     "**************************************************************** " +

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

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

                    

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

       b=sc.nextDouble();

       a[t].setMathematicsscore(b);

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

                     menu16();

}

 

public static void menu21() {

       String str;

      

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

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

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

                     "**************************************************************** " +

                    

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

       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();

       }

      

}

 

}

以上是关于java第一次测验的主要内容,如果未能解决你的问题,请参考以下文章

java第一次测验

第一周java测验感想

Java课堂测试01及感想

第一次测验

吴恩达课后测验Course 1 - 神经网络和深度学习 - 第一周测验中英

C++探索之旅第一部分第十三课:第一部分小测验