Answer:
speed = float(input("Enter the speed: "))
hours = int(input("Enter the hours: "))
distance = 0
for i in range(hours):
distance += speed * 1
print("The distance after " + str(i+1) + ". hour(s): " + str(distance))
Explanation:
*The code is in Python.
Ask the user to enter the speed and the hours
Initialize the distance as 0
Create a for loop that iterates hours times. Inside the loop, calculate the cumulative distance traveled at the end of each hour and print it (Note that the distance = speed x hour)
Answer:
<h2>It would go to 1000000. </h2><h2>
Explanation:</h2>
Unlike old vehicle odometers that will reach 999999 and stay there(though it is very unlikely to reach that figure) new vehicle odometers have the seventh digit reading and when it passes 999999 it would clock to 1000000.
But in reality it is less likely for vehicles to reach the 999999 mark and most vehicle owners do not get to see their vehicles reach this mark as the vehicle will either be scrapped or abandoned before it gets to that million mile
Further, the ideal behind this million miles is due to the act of bad guys who tend to spin vehicle odometers to falsify their readings making it seem as though it has not gone a long mile.
Website which contains the URL of the page.