#include <iostream.h>
class Stu
{
public:
	void cin_stu();//输入学生信息
	void cout_stu();//输出学生信息
	void js_stu();//计算成绩
private:
	double xh;
	char xm;
	double nl;
	double cj;
	double qm;
	double sj;
	double ps;
	};
 void Stu::cin_stu()
{
	 cout<<"请输入学生的学号、姓名、年龄、期末成绩、上机成绩、平时成绩"<<endl;
	cin>>xh;
	cin>>xm;
	cin>>nl;
	cin>>qm;
	cin>>sj;
	cin>>ps;
}
void Stu::cout_stu()
{
	cout<<xh<<'/t'<<xm<<'/t'<<nl<<'/t'<<cj<<'/t'<<qm<<'/t'<<sj<<'/t'<<ps<<endl;
}
void Stu::js_stu()
{cj=qm*0.6+sj*0.2+ps*0.2;}

int main()
{
	Stu s1;
	s1.cin_stu();
	s1.cout_stu();
	s1.js_stu();
	Stu s2;
	s2.cin_stu();
	s2.cout_stu();
	s2.js_stu();
	return 0;
	
}