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;
    }
    }
    }


    }

  • 相关阅读:
    集合类
    ajax技术
    Java中的Runnable、Callable、Future、FutureTask的区别与示例
    python 检测文件编码等
    android发送/接收Json包含中文的处理
    android 获取 imei号码 及相关信息
    RelativeLayout常用属性介绍
    Android之读取 AndroidManifest.xml 中的数据
    Java中int与Integer
    Handler sendMessage 与 obtainMessage (sendToTarget)
  • 原文地址:https://www.cnblogs.com/PSLQYZ/p/11515601.html
Copyright © 2011-2022 走看看