Question: validate time and speed for positive values. repeat the program through a do / while loop asking the user if they want to exit (Y
validate time and speed for positive values. repeat the program through a do / while loop asking the user if they want to exit (Y / N). implement your code in c ++ language.
output: enter speed: 0 enter speed 12.4 enter time in minutes: -9 enter time in minutes: 6 the distance is 74.46 m do you want to continue (Y / N) ?: N
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
