import java.util.*;
import java.io.*;
public class test {
public test() {
}
public static void main(String[] args) {
// TODO code application logic here
try{
Scanner sc = new Scanner(new File("C:/Users/Administrator/Desktop/11.txt"));//导入文件内容
while(sc.hasNextLine()){
String line = sc.nextLine().trim();//读取一行数据并删除空格
student st = new student();
String[] xx = line.split("\s+");//按照空格分割字符串
st.id = xx[0];
st.name = xx[1];
st.mat = Integer.parseInt(xx[2]);
st.english = Integer.parseInt(xx[3]);
st.computer = Integer.parseInt(xx[4]);//赋值
st.display();
}
}
catch (Exception ex){
}
}
}
class student{
String id;//学号
String name;//姓名
int mat;//数学成绩
int english;//英语成绩
int computer;//计算机成绩
student(){}
int sum(){
return mat+english+computer;
}
double average(){
return (mat+english+computer)/3.0;
}
void display()
{
String disp = id + "t" + name + "t" + mat + "t" + english + "t" + computer + "t" + sum() + "t" + average() + "t";
System.out.println (disp);
}
}