public class ScoreInformatio {
static String stunumber;
static String name;
public static double mathematicsscore;
public static double englishiscore;
public static double networkscore;
public static double databasescore;
public static double softwarescore;
public ScoreInformatio()
{
}
public void Setstunumber(String s)//输入学号
{
stunumber=s;
}
public void Setname(String n)//输入姓名
{
name=n;
}
public void Setmathematicsscore(double m) //输入数学分数
{
mathematicsscore=m;
}
public void Setenglishiscore(double e)//输入英语分数
{
englishiscore=e;
}
public void Setnetworkscore(double n)//输入计算机网络分数
{
networkscore=n;
}
public void Setdatabasescore(double d)//输入数据结构分数
{
databasescore=d;
}
public void Setsoftwarescore(double s)//输入软件工程分数
{
softwarescore=s;
}
public void Getstunumber()//输出学号
{
System.out.println("学号为:"+stunumber);
}
public void Getname()//输出姓名
{
System.out.println("姓名为:"+name);
}
public void Getmathematicsscore()//输出高数成绩
{
System.out.println("高等数学成绩为:"+mathematicsscore);
}
public void Getenglishiscore() //输出大学英语成绩
{
System.out.println("大学英语成绩为:"+englishiscore);
}
public void Getnetworkscore() //输出计算机网络成绩
{
System.out.println("计算机网络成绩为:"+networkscore);
}
public void Getdatabasescore() //输出数据结构成绩
{
System.out.println("数据结构成绩为:"+databasescore);
}
public void Getsoftwarescore() //输出软件工程成绩
{
System.out.println("软件工程成绩为:"+softwarescore);
}
}