сори сделал только про машину лови код:
public class Car {
private String model="";
private int god;
private int scorost;
private String proizvoditel;
Car(String m,int god,int scorost,String p){
model=m;
this.god=god;
this.scorost=scorost;
proizvoditel=p;
}
public void data() {
System.out.println("model - "+model+"/n"+ "proizvoditel - "+proizvoditel+"\n"+"sreednyaya scorost(kilometrs) - "+scorost+"\n"+"god - "+god);
}
public double time(double kilometrs) {
double time=0;
time=kilometrs/scorost;
int rest=0;
for(int i=4;i
}
return time+rest;
}
}