zoukankan      html  css  js  c++  java
  • 测试

    package test;
    import java.util.Scanner;
    public class ScoreInformation {
    private String stunumber ;
    private String name ;
    double mathematicsscore;
    double networkscore;
    double databasescore;
    double softwarescore;
    public String getStunumber() {
    return stunumber;
    }
    public void setStunumber(String stunumber) {
    this.stunumber=stunumber;
    }
    public String getName() {
    return name;
    }
    public void setName(String name) {
    this.name=name;
    }
    public double getMathematicsscore() {
    return mathematicsscore;
    }
    public void setMathematicsscore(double mathematicsscore) {
    this.mathematicsscore=mathematicsscore;
    }
    public double getNetworkscore() {
    return networkscore;
    }
    public void setNetworkscore(double networkscore) {
    this.networkscore=networkscore;
    }
    public double getDatabasescore() {
    return databasescore;
    }
    public void setDatabasescore(double databasescore) {
    this.databasescore=databasescore;
    }
    public double getSoftwarescore() {
    return databasescore;
    }
    public void setSoftwarescore(double softwarescore) {
    this.softwarescore=softwarescore;
    }
    ScoreInformation(String stunumber,String name,double mathematicsscore,double networkscore,
    double databasescore,double ftwarescore )
    { this.stunumber=stunumber;
    this.name=name;
    this.mathematicsscore=mathematicsscore;
    this.networkscore=networkscore;
    this.databasescore=databasescore;
    this.softwarescore=softwarescore;
    }

    }

    package test;
    import java.util.Scanner;
    public class ScoreManagement {
    {public static void main(String[] args)}
    Scanner sc=new Scanner(System.in);
    static Scanner sc = null;
    static ScoreInformation[] a = new ScoreInformation[1000];
    public static int systemMenu() {
    sc = new Scanner(System.in);}
    System.out.println("*************************************************************** "+
    " 石家庄铁道大学软件工程系" +
    " 学生学籍管理系统 2019 版 " +
    "*************************************************************** "+
    " 1、 学生考试成绩录入; " +
    " 2、 学生考试成绩修改; " +
    " 3、 计算学生成绩绩点; " +
    " 4、 退出学籍管理系统; " +
    "***************************************************************"
    );
    int t;
    System.out.println("请选择:");
    t= sc.nextInt();
    return t;
    if(t==1){
    int[] arr=new int[5];
    float ave=0;
    System.out.print("请按顺序输入成绩:");
    }
    if(t==2) {
    System.out.print("请按顺序输入成绩:");
    System.out.println("输入为Y,则返回主界面;输入为N,则不返回");
    }
    if(t==3){System.out.print("请修改成绩:");
    System.out.println("输入为Y,则返回主界面;输入为N,则不返回");
    }
    }
    if(t==4) {System.out.println("*************************************************************** "+
    " 谢谢使用石家庄铁道大学软件工程系学生学籍管理系统 2019 版 "+
    " 制作人:蒲顺利 "+
    "***************************************************************"
    );

    }


    public static void deleteStudent(String stunumber){
    int k;
    for(k=0;k<sum;k++) {
    if(a[k].stunumber.compareTo(stunumber)==0) {
    a[k].stunumber = null;
    a[k].name = null;
    a[k].age = 0;
    a[k].score = 0.0;
    }
    }
    }


    }

  • 相关阅读:
    lua 10 迭代器
    lua 9 parttern 字符极其简要的介绍
    lua 7 运算符
    lua 6 函数
    lua 5 流程控制 if
    线程池的设计问题/线程数量计算
    一个父子进程管道通信的复习
    redis 网络库文件 重构
    带标准IO带缓存区和非标准IO 遇到fork是的情况分析
    libevent 同性恋 讲解
  • 原文地址:https://www.cnblogs.com/PSLQYZ/p/11515601.html
Copyright © 2011-2022 走看看