Exercise 6:
Execute your modified program (Version3) using a maximum time of 5 seconds, and look at the plot of speed versus time. Does the plot look better than the plot that you looked at in Exercise 3? It should! If it doesn’t, there is a bug in your code that needs to be fixed before you continue. Explain why the new plot of speed versus time has the shape that it has.