package com.company;import java.util.*;//题目一class student{ private String name; private String xingbie; private int year,month,day,age; private String sub; public void add(int x,int y,int z,String a,String b,String c,int age) { year=x;month=y;day=z;name=a;xingbie=b;sub=c;this.age=age; } public void p() { System.out.print(&quot;subject:&quot;+sub+&quot;,name:&quot;+xingbie+&quot;,Sex:&quot;+xingbie+&quot;,birth:&quot;+year+&quot;/&quot;+month+&quot;/&quot;+day+&quot;,age:&quot;+age); }}//题目二class vechile{ private double speed; private int power; public void getpower(int x) { power=x; } public void getspeed(double x) { speed=x; } public void upspeed() { speed+=10; System.out.printf(&quot;%lf&quot;,speed); } public void lowspeed() { speed-=10; System.out.printf(&quot;%lf&quot;,speed); }}//题目三class child{ private String name; private String xingbie; private int age,num; private String habbit; void add(int num,String name,int age,String habbit,String xingbie) { this.age=age; this.habbit=habbit; this.num=num; this.xingbie=xingbie; this.name=name; } public void p() { System.out.print(&quot;**第&quot;+num+&quot;位**\n&quot;); System.out.println(name+&quot;小朋友:&quot;+xingbie+&quot;,&quot;+age); System.out.println(&quot;兴趣爱好&quot;+habbit); }}//题目四class hws{ private int num; public void add(int x) { num=x; } public void judge() { int[] a = new int[1000]; int jishu=0;int j=num;int l=0; while(j!=0) { jishu++; a[++l]=j%10; j/=10; } int num1=jishu/2;boolean l1=flase; for(int i=1;i<=num1;i++) { if(a[i]==a[jishu-i+1]) continue; else { l1=true; break; } } if(l1==flase) System.out.println(&quot;Yes&quot;); else System.out.println(&quot;No&quot;); }}//题目五class cai{ private int num; public void add(int x) { num=x; } void caishuzi(int x) { if(x>num) { System.out.println(&quot;猜大了&quot;); int a=s.nextint() caishuzi(a); } }}public class Main{ public static void main(String[] arges){ Scanner s=new Scanner(System.in); System.out.printf(&quot;2304010103胡琦\n&quot;); student a=new student(); a.add(2004,6,9,&quot;小胡&quot;,&quot;男&quot;,&quot;计算机科学与技术&quot;,20); a.p(); vechile b=new vechile(); int power=s.nextInt(); b.getpower(power); double speed=s.nextDouble(); b.getspeed(speed); b.lowspeed(); b.upspeed(); child c=new child(); c.add(1,&quot;小胡&quot;,20,&quot;打游戏&quot;,&quot;男&quot;);}}