[java]代码库
class A
{
public static void main(String[] args)
{
double a1,a2,a3,a4,a5;
a1=85.5;
a2=75;
a3=50;
a4=60.5;
a5=90;
int b1,b2,b3,b4,b5;
b1=85;
b2=78;
b3=19;
b4=100;
b5=70;
int c1,c2,c3,c4,c5;
c1=88;
c2=77;
c3=16;
c4=50;
c5=88;
int d1,d2,d3,d4,d5;
d1=31;
d2=68;
d3=40;
d4=23;
d5=98;
int e1,e2,e3,e4,e5;
e1=90;
e2=54;
e3=70;
e4=33;
e5=99;
System.out.println("姓名\t"+"性别\t"+"语文\t"+"数学\t"+"英语\t"+"物理\t"+"化学\t"+"总分\t");
System.out.println("陈三\t"+"男\t"+a1+"\t"+b1+"\t"+c1+"\t"+d1+"\t"+e1+"\t"+(a1+b1+c1+d1+e1)+"\t");
System.out.println("李四\t"+"男\t"+a2+"\t"+b2+"\t"+c2+"\t"+d2+"\t"+e2+"\t"+(a2+b2+c2+d2+e2)+"\t");
System.out.println("张五\t"+"女\t"+a3+"\t"+b3+"\t"+c3+"\t"+d3+"\t"+e3+"\t"+(a3+b3+c3+d3+e3)+"\t");
System.out.println("王六\t"+"女\t"+a4+"\t"+b4+"\t"+c4+"\t"+d4+"\t"+e4+"\t"+(a4+b4+c4+d4+e4)+"\t");
System.out.println("何七\t"+"男\t"+a5+"\t"+b5+"\t"+c5+"\t"+d5+"\t"+e5+"\t"+(a5+b5+c5+d5+e5)+"\t");
}
}