dogRun +=sumTime*dogSpeed;
System.out.println("The dog has run: "+dogRun);
}
public static double calculateTime(double distance, double speedA, double speedB){
Double time ;
time = distance/(speedA+speedB);
time = (double)Math.round(time*100000000)/100000000;
return time;