思路:定义两个类,一个scoreinformation类,一个scoremanagement类,scoreinformation类用于编写姓名,学号,以及各项成绩的输入函数,scoreinformation类有七个私有变量,和各个变量的get(),set()函数,scoremanagement类用于表现各项功能,包括学生信息的引入函数,学生信息的添加函数,学生信息的修改函数,学生成绩绩点的计算函数,以及退出系统的函数,在最后的主函数中,首先调用存储学生信息的函数,然后运用switch,case函数对各个函数进行调用,对应各项功能,进行函数的调用。

代码:scoreinformation类:

package xueshengxuejiguanlixitong;
public class scoreinformation {
 private String stunumber;
 private String name;
 private double mathematicsscore;
 private double englishscore;
 private double networkscore;
 private double databasescore;
 private double softwarescore;
 public void setstunumber(String stunumber)
 {
    this.stunumber = stunumber;
 }
 public String getstunumber()
 {
  return stunumber;
 }
 public void setname(String name)
 {
     this.name = name;
 }
 public String getname()
 {
      return name; 
 }
    public void setmathematicsscore(double mathematicsscore)
    {
     this.mathematicsscore = mathematicsscore;
    }
    public double getmathematicsscore()
    {
     return mathematicsscore;
    }
    public void setenglishscore(double englishscore)
    {
     this.englishscore = englishscore;
    }
    public double getenglishscore()
    {
     return englishscore;
    }
    public void setnetworkscore(double networkscore)
    {
     this.networkscore = networkscore;
    }
    public double getnetworkscore()
    {
     return networkscore;
    }
    public void setdatabasescore(double databasescore)
    {
     this.databasescore = databasescore;
    }
    public double getdatabasescore()
    {
     return databasescore;
    }
    public void setsoftwarescore(double softwarescore)
    {
     this.softwarescore = softwarescore;
    }
    public double getsoftwarescore()
    {
     return softwarescore;
    }
}
scoremanagement类:
package xueshengxuejiguanlixitong;
import java.util.Scanner;
public class ScoreManagement {
 static scoreinformation s[] = new  scoreinformation[100];
 static int sum = 5;
 static Scanner shuru = new Scanner(System.in);
 
 public static void coninformation()
 {
  s[0] = new scoreinformation();
  s[0].setstunumber(“20183737”);
  s[0].setname(“杨青”);
  s[0].setmathematicsscore(0);
  s[0].setenglishscore(0);
  s[0].setnetworkscore(0);
  s[0].setdatabasescore(0);
  s[0].setsoftwarescore(0);
  s[1] = new scoreinformation();
  s[1].setstunumber(“20183738”);
  s[1].setname(“张三”);
  s[1].setmathematicsscore(0);
  s[1].setenglishscore(0);
  s[1].setnetworkscore(0);
  s[1].setdatabasescore(0);
  s[1].setsoftwarescore(0);
  s[2] = new scoreinformation();
  s[2].setstunumber(“20183739”);
  s[2].setname(“李四”);
  s[2].setmathematicsscore(0);
  s[2].setenglishscore(0);
  s[2].setnetworkscore(0);
  s[2].setdatabasescore(0);
  s[2].setsoftwarescore(0);
  s[3] = new scoreinformation();
  s[3].setstunumber(“20183740”);
  s[3].setname(“王五”);
  s[3].setmathematicsscore(0);
  s[3].setenglishscore(0);
  s[3].setnetworkscore(0);
  s[3].setdatabasescore(0);
  s[3].setsoftwarescore(0);
  s[4] = new scoreinformation();
  s[4].setstunumber(“20183741”);
  s[4].setname(“李六”);
  s[4].setmathematicsscore(0);
  s[4].setenglishscore(0);
  s[4].setnetworkscore(0);
  s[4].setdatabasescore(0);
  s[4].setsoftwarescore(0);
 }
 public static  void addscore()
 {
  while (true)
  {
  int t=0;
  System.out.println(“*****************************************************”);
  System.out.println(”        石家庄铁道大学软件工程系学生学籍管理系统2019版”);
  System.out.println(”               学生考试成绩录入界面”);
  System.out.println(“****************************************************”);
  System.out.println(”               请输入学生学号:********”);
  System.out.println(“****************************************************”);
  System.out.println(“请输入八位的学号:”);
  String a=shuru.next();
  for(int i=0;i<sum;i++)
  {
   if(a.equals(s[i].getstunumber()))
   {
    System.out.println(“****************************************************”);
    System.out.println(”            石家庄铁道大学软件工程系学生学籍管理系统2019版”);
    System.out.println(”                     学生考试成绩录入界面”);
    System.out.println(“****************************************************”);
    System.out.println(”                 学生学号:”+s[i].getstunumber());
    System.out.println(”                 学生姓名:”+s[i].getname());
    System.out.println(”                 请输入高等数学成绩:”);
    System.out.println(“****************************************************”);
    s[i].setmathematicsscore(shuru.nextDouble());
    if(s[i].getmathematicsscore()>0&&s[i].getmathematicsscore()<=100)
    {
     System.out.println(“****************************************************”);
     System.out.println(”            石家庄铁道大学软件工程系学生学籍管理系统2019版”);
     System.out.println(”                     学生考试成绩录入界面”);
     System.out.println(“****************************************************”);
     System.out.println(”                 学生学号:”+s[i].getstunumber());
     System.out.println(”                 学生姓名:”+s[i].getname());
     System.out.println(”                 高等数学成绩:”+s[i].getmathematicsscore());
     System.out.println(”                 请输入大学英语成绩:”);
     System.out.println(“****************************************************”);
     s[i].setenglishscore(shuru.nextDouble());
     if(s[i].getenglishscore()>0&&s[i].getenglishscore()<=100)
     {
      System.out.println(“****************************************************”);
      System.out.println(”            石家庄铁道大学软件工程系学生学籍管理系统2019版”);
      System.out.println(”                     学生考试成绩录入界面”);
      System.out.println(“****************************************************”);
      System.out.println(”                 学生学号:”+s[i].getstunumber());
      System.out.println(”                 学生姓名:”+s[i].getname());
      System.out.println(”                 高等数学成绩:”+s[i].getmathematicsscore());
      System.out.println(”                 大学英语成绩:”+s[i].getenglishscore());
      System.out.println(”                 请输入计算机网络成绩:”);
      System.out.println(“****************************************************”);
      s[i].setnetworkscore(shuru.nextDouble());
      if(s[i].getnetworkscore()>0&&s[i].getnetworkscore()<=100)
      {
       System.out.println(“****************************************************”);
       System.out.println(”            石家庄铁道大学软件工程系学生学籍管理系统2019版”);
       System.out.println(”                     学生考试成绩录入界面”);
       System.out.println(“****************************************************”);
       System.out.println(”                 学生学号:”+s[i].getstunumber());
       System.out.println(”                 学生姓名:”+s[i].getname());
       System.out.println(”                 高等数学成绩:”+s[i].getmathematicsscore());
       System.out.println(”                 大学英语成绩:”+s[i].getenglishscore());
       System.out.println(”                 计算机网络成绩:”+s[i].getnetworkscore());
       System.out.println(”                 请输入数据库成绩:”);
       System.out.println(“****************************************************”);
       s[i].setdatabasescore(shuru.nextDouble());
       if(s[i].getdatabasescore()>0&&s[i].getdatabasescore()<100)
       {
        System.out.println(“****************************************************”);
        System.out.println(”            石家庄铁道大学软件工程系学生学籍管理系统2019版”);
        System.out.println(”                     学生考试成绩录入界面”);
        System.out.println(“****************************************************”);
        System.out.println(”                 学生学号:”+s[i].getstunumber());
        System.out.println(”                 学生姓名:”+s[i].getname());
        System.out.println(”                 高等数学成绩:”+s[i].getmathematicsscore());
        System.out.println(”                 大学英语成绩:”+s[i].getenglishscore());
        System.out.println(”                 计算机网络成绩:”+s[i].getnetworkscore());
        System.out.println(”                 输入数据库成绩:”+s[i].getdatabasescore());
        System.out.println(”                 请输入软件工程成绩:”);
        System.out.println(“****************************************************”);
        s[i].setsoftwarescore(shuru.nextDouble());
        if(s[i].getsoftwarescore()>0&&s[i].getsoftwarescore()<=100)
        {
         System.out.println(“****************************************************”);
         System.out.println(”            石家庄铁道大学软件工程系学生学籍管理系统2019版”);
         System.out.println(”                     学生考试成绩录入界面”);
         System.out.println(“****************************************************”);
         System.out.println(”                 学生学号:”+s[i].getstunumber());
         System.out.println(”                 学生姓名:”+s[i].getname());
         System.out.println(”                 高等数学成绩:”+s[i].getmathematicsscore());
         System.out.println(”                 大学英语成绩:”+s[i].getenglishscore());
         System.out.println(”                 计算机网络成绩:”+s[i].getnetworkscore());
         System.out.println(”                 数据库成绩:”+s[i].getdatabasescore());
         System.out.println(”                 软件工程成绩:”+s[i].getsoftwarescore());
         System.out.println(“****************************************************”);
         System.out.println(”       该学生成绩已录入完毕,是否提交(Y/N)”);
         String c=shuru.next();
         if(c.equals(“Y”))
          {
             t=1;
             break;
          }
         
         else {
          s[i].setmathematicsscore(0);
          s[i].setenglishscore(0);
          s[i].setnetworkscore(0);
          s[i].setdatabasescore(0);
          s[i].setsoftwarescore(0);
          break;}
         }
        else {t=0;break;}
       }
       else {t=0;break;}
      }
      else {t=0;break;}
      
     }
     else {t=0;break;}
    }
    else if(i==sum)
    {
     t=0;
     break;
    }
   }
   
  }
  if(t==1)break;
  }
 }
 public static void xiugaiscore()
 {
  
  int m = 0;
  while (true)
  {
  System.out.println(“*****************************************************”);
  System.out.println(”        石家庄铁道大学软件工程系学生学籍管理系统2019版”);
  System.out.println(”               学生考试成绩录入界面”);
  System.out.println(“****************************************************”);
  System.out.println(”               请输入学生学号:********”);
  System.out.println(“****************************************************”);
  System.out.println(“请输入八位的学号:”);
  String a=shuru.next();
  for(int i=0;i<sum;i++)
  {
   if(a.equals(s[i].getstunumber()))
   {
          System.out.println(“****************************************************”);
    System.out.println(”            石家庄铁道大学软件工程系学生学籍管理系统2019版”);
    System.out.println(”                     学生考试成绩修改界面”);
    System.out.println(“****************************************************”);
    System.out.println(”                 学生学号:”+s[i].getstunumber());
    System.out.println(”                 学生姓名:”+s[i].getname());
    System.out.println(”                 1.高等数学成绩:”+s[i].getmathematicsscore());
    System.out.println(”                 2.大学英语成绩:”+s[i].getenglishscore());
    System.out.println(”                 3.计算机网络成绩:”+s[i].getnetworkscore());
    System.out.println(”                 4.数据库成绩:”+s[i].getdatabasescore());
    System.out.println(”                 5.软件工程成绩:”+s[i].getsoftwarescore());
    System.out.println(“****************************************************”);
    double x1,x2,x3,x4,x5;
    x1 = s[i].getmathematicsscore();
    x2 = s[i].getenglishscore();
    x3 = s[i].getnetworkscore();
    x4 = s[i].getdatabasescore();
    x5 = s[i].getsoftwarescore();
    m = shuru.nextInt();
          switch(m){
          case 1:System.out.println(“****************************************************”);
                 System.out.println(”            石家庄铁道大学软件工程系学生学籍管理系统2019版”);
                 System.out.println(”                     学生考试成绩录入界面”);
                 System.out.println(“****************************************************”);
                 System.out.println(”                 学生学号:”+s[i].getstunumber());
                 System.out.println(”                 学生姓名:”+s[i].getname());
                 System.out.println(”                 请输入修改后的高等数学成绩:XXX               “);
                 s[i].setmathematicsscore(shuru.nextDouble());
                 if(s[i].getmathematicsscore()>0&&s[i].getmathematicsscore()<=100)
      {
       System.out.println(“****************************************************”);
       System.out.println(”            石家庄铁道大学软件工程系学生学籍管理系统2019版”);
       System.out.println(”                     学生考试成绩录入界面”);
       System.out.println(“****************************************************”);
       System.out.println(”                 学生学号:”+s[i].getstunumber());
       System.out.println(”                 学生姓名:”+s[i].getname());
       System.out.println(”                 1.高等数学成绩:”+s[i].getmathematicsscore());
       System.out.println(”                 2.大学英语成绩:”+s[i].getenglishscore());
       System.out.println(”                 3.计算机网络成绩:”+s[i].getnetworkscore());
       System.out.println(”                 4.数据库成绩:”+s[i].getdatabasescore());
       System.out.println(”                 5.软件工程成绩:”+s[i].getsoftwarescore());
       System.out.println(“****************************************************”);
       System.out.println(”                 该学生成绩已修改完毕,是否提交(Y/N)”);
       String c=shuru.next();
       if(c.equals(“Y”))
       {
           break; 
       }
       else if(c.equals(“N”))
       {
        s[i].setmathematicsscore(x1);
        break;
       }
       
      }
          case 2:System.out.println(“****************************************************”);
                    System.out.println(”            石家庄铁道大学软件工程系学生学籍管理系统2019版”);
                    System.out.println(”                     学生考试成绩录入界面”);
                    System.out.println(“****************************************************”);
                    System.out.println(”                 学生学号:”+s[i].getstunumber());
                    System.out.println(”                 学生姓名:”+s[i].getname());
                    System.out.println(”                 请输入修改后的大学英语成绩:XXX               “);
                    s[i].setenglishscore(shuru.nextDouble());
                    if(s[i].getenglishscore()>0&&s[i].getenglishscore()<=100)
      {
       System.out.println(“****************************************************”);
       System.out.println(”            石家庄铁道大学软件工程系学生学籍管理系统2019版”);
       System.out.println(”                     学生考试成绩录入界面”);
       System.out.println(“****************************************************”);
       System.out.println(”                 学生学号:”+s[i].getstunumber());
       System.out.println(”                 学生姓名:”+s[i].getname());
       System.out.println(”                 1.高等数学成绩:”+s[i].getmathematicsscore());
       System.out.println(”                 2.大学英语成绩:”+s[i].getenglishscore());
       System.out.println(”                 3.计算机网络成绩:”+s[i].getnetworkscore());
       System.out.println(”                 4.数据库成绩:”+s[i].getdatabasescore());
       System.out.println(”                 5.软件工程成绩:”+s[i].getsoftwarescore());
       System.out.println(“****************************************************”);
       System.out.println(”                 该学生成绩已修改完毕,是否提交(Y/N)”);
       String c=shuru.next();
       if(c.equals(“Y”))
       {
           break; 
       }
       if(c.equals(“N”))
       {
        s[i].setenglishscore(x2);
        break;
       }
       
      }
          case 3:System.out.println(“****************************************************”);
                       System.out.println(”            石家庄铁道大学软件工程系学生学籍管理系统2019版”);
                       System.out.println(”                     学生考试成绩录入界面”);
                       System.out.println(“****************************************************”);
                       System.out.println(”                 学生学号:”+s[i].getstunumber());
                       System.out.println(”                 学生姓名:”+s[i].getname());
                       System.out.println(”                 请输入修改后的计算机网络成绩:XXX               “);
                       s[i].setnetworkscore(shuru.nextDouble());
                       if(s[i].getnetworkscore()>0&&s[i].getnetworkscore()<=100)
      {
       System.out.println(“****************************************************”);
       System.out.println(”            石家庄铁道大学软件工程系学生学籍管理系统2019版”);
       System.out.println(”                     学生考试成绩录入界面”);
       System.out.println(“****************************************************”);
       System.out.println(”                 学生学号:”+s[i].getstunumber());
       System.out.println(”                 学生姓名:”+s[i].getname());
       System.out.println(”                 1.高等数学成绩:”+s[i].getmathematicsscore());
       System.out.println(”                 2.大学英语成绩:”+s[i].getenglishscore());
       System.out.println(”                 3.计算机网络成绩:”+s[i].getnetworkscore());
       System.out.println(”                 4.数据库成绩:”+s[i].getdatabasescore());
       System.out.println(”                 5.软件工程成绩:”+s[i].getsoftwarescore());
       System.out.println(“****************************************************”);
       System.out.println(”                 该学生成绩已修改完毕,是否提交(Y/N)”);
       String c=shuru.next();
       if(c.equals(“Y”))
       {
           break; 
       }
       if(c.equals(“N”))
       {
        s[i].setnetworkscore(x3);
        break;
       }
       
      }
          case 4:System.out.println(“****************************************************”);
                       System.out.println(”            石家庄铁道大学软件工程系学生学籍管理系统2019版”);
                       System.out.println(”                     学生考试成绩录入界面”);
                       System.out.println(“****************************************************”);
                       System.out.println(”                 学生学号:”+s[i].getstunumber());
                       System.out.println(”                 学生姓名:”+s[i].getname());
                       System.out.println(”                 请输入修改后的数据库成绩:XXX               “);
                       s[i].setdatabasescore(shuru.nextDouble());
                       if(s[i].getdatabasescore()>0&&s[i].getdatabasescore()<=100)
      {
       System.out.println(“****************************************************”);
       System.out.println(”            石家庄铁道大学软件工程系学生学籍管理系统2019版”);
       System.out.println(”                     学生考试成绩录入界面”);
       System.out.println(“****************************************************”);
       System.out.println(”                 学生学号:”+s[i].getstunumber());
       System.out.println(”                 学生姓名:”+s[i].getname());
       System.out.println(”                 1.高等数学成绩:”+s[i].getmathematicsscore());
       System.out.println(”                 2.大学英语成绩:”+s[i].getenglishscore());
       System.out.println(”                 3.计算机网络成绩:”+s[i].getnetworkscore());
       System.out.println(”                 4.数据库成绩:”+s[i].getdatabasescore());
       System.out.println(”                 5.软件工程成绩:”+s[i].getsoftwarescore());
       System.out.println(“****************************************************”);
       System.out.println(”                 该学生成绩已修改完毕,是否提交(Y/N)”);
       String c=shuru.next();
       if(c.equals(“Y”))
       {
           break; 
       }
       if(c.equals(“N”))
       {
        s[i].setdatabasescore(x4);
        break;
       }
       
      }
          case 5:System.out.println(“****************************************************”);
                       System.out.println(”            石家庄铁道大学软件工程系学生学籍管理系统2019版”);
                       System.out.println(”                     学生考试成绩录入界面”);
                       System.out.println(“****************************************************”);
                       System.out.println(”                 学生学号:”+s[i].getstunumber());
                       System.out.println(”                 学生姓名:”+s[i].getname());
                       System.out.println(”                 请输入修改后的软件工程成绩:XXX               “);
                       s[i].setsoftwarescore(shuru.nextDouble());
                       if(s[i].getsoftwarescore()>0&&s[i].getsoftwarescore()<=100)
      {
       System.out.println(“****************************************************”);
       System.out.println(”            石家庄铁道大学软件工程系学生学籍管理系统2019版”);
       System.out.println(”                     学生考试成绩录入界面”);
       System.out.println(“****************************************************”);
       System.out.println(”                 学生学号:”+s[i].getstunumber());
       System.out.println(”                 学生姓名:”+s[i].getname());
       System.out.println(”                 1.高等数学成绩:”+s[i].getmathematicsscore());
       System.out.println(”                 2.大学英语成绩:”+s[i].getenglishscore());
       System.out.println(”                 3.计算机网络成绩:”+s[i].getnetworkscore());
       System.out.println(”                 4.数据库成绩:”+s[i].getdatabasescore());
       System.out.println(”                 5.软件工程成绩:”+s[i].getsoftwarescore());
       System.out.println(“****************************************************”);
       System.out.println(”                 该学生成绩已修改完毕,是否提交(Y/N)”);
       String c=shuru.next();
       if(c.equals(“Y”))
       {
           break; 
       }
       if(c.equals(“N”))
       {
        s[i].setsoftwarescore(x5);
        break;
       }
       
      }
                      
         }
   }
  }
  }
 }
 public static void jisuanjidian()
 {
  System.out.println(“****************************************************”);
        System.out.println(”            石家庄铁道大学软件工程系学生学籍管理系统2019版”);
        System.out.println(”                     计算学生成绩绩点计算界面  “);
        System.out.println(“****************************************************”);
        System.out.println(”                     请输入学生学号:XXXXXXXX”);
        System.out.println(“****************************************************”);
        String a=shuru.next();
        double mathematicspoint=0;
        double englishpoint=0;
        double networkpoint=0;
        double databasepoint=0;
        double softwarepoint=0;
        double allpoint=0;
  for(int i=0;i<sum;i++)
  {
   if(a.equals(s[i].getstunumber()))
   {
    if(s[i].getmathematicsscore()<60)
    {
     mathematicspoint=0;
    }
    else if(s[i].getmathematicsscore()>60&&s[i].getmathematicsscore()<63.9)
    {
     mathematicspoint=1.0;
    }
    else if(s[i].getmathematicsscore()>64&&s[i].getmathematicsscore()<65.9)
    {
     mathematicspoint=1.5; 
    }
    else if(s[i].getmathematicsscore()>66&&s[i].getmathematicsscore()<67.9)
    {
     mathematicspoint=1.7; 
    }
    else if(s[i].getmathematicsscore()>68&&s[i].getmathematicsscore()<71.9)
    {
     mathematicspoint=2.0; 
    }
    else if(s[i].getmathematicsscore()>72&&s[i].getmathematicsscore()<74.9)
    {
     mathematicspoint=2.3; 
    }
    else if(s[i].getmathematicsscore()>75&&s[i].getmathematicsscore()<77.9)
    {
     mathematicspoint=2.7;  
    }
    else if(s[i].getmathematicsscore()>78&&s[i].getmathematicsscore()<81.9)
    {
     mathematicspoint=3.0;
    }
    else if(s[i].getmathematicsscore()>82&&s[i].getmathematicsscore()<84.9)
    {
     mathematicspoint=3.3;
    }
    else if(s[i].getmathematicsscore()>85&&s[i].getmathematicsscore()<89.9)
    {
     mathematicspoint=3.7;
    }
    else if(s[i].getmathematicsscore()>=90)
    {
     mathematicspoint=4.0;
    }
    if(s[i].getenglishscore()<60)
    {
     englishpoint=0;
    }
    else if(s[i].getenglishscore()>60&&s[i].getenglishscore()<63.9)
    {
     englishpoint=1.0;
    }
    else if(s[i].getenglishscore()>64&&s[i].getenglishscore()<65.9)
    {
     englishpoint=1.5; 
    }
    else if(s[i].getenglishscore()>66&&s[i].getenglishscore()<67.9)
    {
     englishpoint=1.7; 
    }
    else if(s[i].getenglishscore()>68&&s[i].getenglishscore()<71.9)
    {
     englishpoint=2.0; 
    }
    else if(s[i].getenglishscore()>72&&s[i].getenglishscore()<74.9)
    {
     englishpoint=2.3; 
    }
    else if(s[i].getenglishscore()>75&&s[i].getenglishscore()<77.9)
    {
     englishpoint=2.7;  
    }
    else if(s[i].getenglishscore()>78&&s[i].getenglishscore()<81.9)
    {
     englishpoint=3.0;
    }
    else if(s[i].getenglishscore()>82&&s[i].getenglishscore()<84.9)
    {
     englishpoint=3.3;
    }
    else if(s[i].getenglishscore()>85&&s[i].getenglishscore()<89.9)
    {
     englishpoint=3.7;
    }
    else if(s[i].getenglishscore()>=90)
    {
     englishpoint=4.0;
    }
    if(s[i].getnetworkscore()<60)
    {
     networkpoint=0;
    }
    else if(s[i].getnetworkscore()>60&&s[i].getnetworkscore()<63.9)
    {
     networkpoint=1.0;
    }
    else if(s[i].getnetworkscore()>64&&s[i].getnetworkscore()<65.9)
    {
     networkpoint=1.5; 
    }
    else if(s[i].getnetworkscore()>66&&s[i].getnetworkscore()<67.9)
    {
     networkpoint=1.7; 
    }
    else if(s[i].getnetworkscore()>68&&s[i].getnetworkscore()<71.9)
    {
     networkpoint=2.0; 
    }
    else if(s[i].getnetworkscore()>72&&s[i].getnetworkscore()<74.9)
    {
     networkpoint=2.3; 
    }
    else if(s[i].getnetworkscore()>75&&s[i].getnetworkscore()<77.9)
    {
     networkpoint=2.7;  
    }
    else if(s[i].getnetworkscore()>78&&s[i].getnetworkscore()<81.9)
    {
     networkpoint=3.0;
    }
    else if(s[i].getnetworkscore()>82&&s[i].getnetworkscore()<84.9)
    {
     networkpoint=3.3;
    }
    else if(s[i].getnetworkscore()>85&&s[i].getnetworkscore()<89.9)
    {
     networkpoint=3.7;
    }
    else if(s[i].getnetworkscore()>=90)
    {
     networkpoint=4.0;
    }
    if(s[i].getdatabasescore()<60)
    {
     databasepoint=0;
    }
    else if(s[i].getdatabasescore()>60&&s[i].getdatabasescore()<63.9)
    {
     databasepoint=1.0;
    }
    else if(s[i].getdatabasescore()>64&&s[i].getdatabasescore()<65.9)
    {
     databasepoint=1.5; 
    }
    else if(s[i].getdatabasescore()>66&&s[i].getdatabasescore()<67.9)
    {
     databasepoint=1.7; 
    }
    else if(s[i].getdatabasescore()>68&&s[i].getdatabasescore()<71.9)
    {
     databasepoint=2.0; 
    }
    else if(s[i].getdatabasescore()>72&&s[i].getdatabasescore()<74.9)
    {
     databasepoint=2.3; 
    }
    else if(s[i].getdatabasescore()>75&&s[i].getdatabasescore()<77.9)
    {
     databasepoint=2.7;  
    }
    else if(s[i].getdatabasescore()>78&&s[i].getdatabasescore()<81.9)
    {
     databasepoint=3.0;
    }
    else if(s[i].getdatabasescore()>82&&s[i].getdatabasescore()<84.9)
    {
     databasepoint=3.3;
    }
    else if(s[i].getdatabasescore()>85&&s[i].getdatabasescore()<89.9)
    {
     databasepoint=3.7;
    }
    else if(s[i].getdatabasescore()>=90)
    {
     databasepoint=4.0;
    }
    if(s[i].getsoftwarescore()<60)
    {
     softwarepoint=0;
    }
    else if(s[i].getsoftwarescore()>60&&s[i].getsoftwarescore()<63.9)
    {
     softwarepoint=1.0;
    }
    else if(s[i].getsoftwarescore()>64&&s[i].getsoftwarescore()<65.9)
    {
     softwarepoint=1.5; 
    }
    else if(s[i].getsoftwarescore()>66&&s[i].getsoftwarescore()<67.9)
    {
     softwarepoint=1.7; 
    }
    else if(s[i].getsoftwarescore()>68&&s[i].getsoftwarescore()<71.9)
    {
     softwarepoint=2.0; 
    }
    else if(s[i].getsoftwarescore()>72&&s[i].getsoftwarescore()<74.9)
    {
     softwarepoint=2.3; 
    }
    else if(s[i].getsoftwarescore()>75&&s[i].getsoftwarescore()<77.9)
    {
     softwarepoint=2.7;  
    }
    else if(s[i].getsoftwarescore()>78&&s[i].getsoftwarescore()<81.9)
    {
     softwarepoint=3.0;
    }
    else if(s[i].getsoftwarescore()>82&&s[i].getsoftwarescore()<84.9)
    {
     softwarepoint=3.3;
    }
    else if(s[i].getsoftwarescore()>85&&s[i].getsoftwarescore()<89.9)
    {
     softwarepoint=3.7;
    }
    else if(s[i].getsoftwarescore()>=90)
    {
     softwarepoint=4.0;
    }
    allpoint=(mathematicspoint*4+englishpoint*3+networkpoint*4+databasepoint*3+databasepoint*2)/16;
    
   } 
    System.out.println(“****************************************************”);
    System.out.println(”            石家庄铁道大学软件工程系学生学籍管理系统2019版”);
    System.out.println(”                     学生考试成绩录入界面”);
    System.out.println(“****************************************************”);
    System.out.println(”                 学生学号:”+s[i].getstunumber());
    System.out.println(”                 学生姓名:”+s[i].getname());
    System.out.println(”                 1.高等数学成绩绩点:”+mathematicspoint);
    System.out.println(”                 2.大学英语成绩绩点:”+englishpoint);
    System.out.println(”                 3.计算机网络成绩绩点:”+networkpoint);
    System.out.println(”                 4.数据库成绩绩点:”+databasepoint);
    System.out.println(”                 5.软件工程成绩绩点:”+softwarepoint);
    System.out.println(”                 你的平均学分绩点为:”+allpoint);
    if(allpoint>2)
    {
        System.out.println(”                 提示信息:你的学分绩点已达到毕业要求 “);
    }
    if(allpoint<2)
    {
     System.out.println(”                 提示信息:你的学分绩点不满足毕业要求”);
    }
    System.out.println(”                 是否返回系统主界面:(Y/N)”);
    System.out.println(“****************************************************”);
   }
       
  }
     
 public static void tuichuxitong()
 {
  System.out.println(“****************************************************”);
  System.out.println(”            石家庄铁道大学软件工程系学生学籍管理系统2019版”);
  System.out.println(”                     制作人:杨青”);
  System.out.println(“****************************************************”);
 }
 public static void main(String[] args) {
  while(true)
  {
        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(“*************************************************************”);
        coninformation();
        int n;
        n = shuru.nextInt();
        switch (n) {
        case 1:addscore();
              break;
        case 2:xiugaiscore();
               break;
        case 3:jisuanjidian();
               break;
        case 4:tuichuxitong();
               break;
        }
 }
 }
}
截图:

 

 

 

 

 

 

 

 

 

 

 

 

版权声明:本文为yangqqq原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/yangqqq/p/11509952.html