1234567
do { /*get the user input*/ } while(/*input is wrong*/); double result = /* multiply, velocity in the selected medium(meter/sec), with, user inputed time(sec) */