This code is supposed to calculate the speed(mph) traveled, by entering the miles traveled and the time it took. This issue is when I enter 5 for "miles" and 2 for "hours", the out come is 2.00 instead of 2.50. What is the issue?
To fix your problem, you have a 2 options:
1. change the signature of milesPerHour to take float or double values instead of integers.
2. cast either miles or hours to a float or double: