If the user enters invalid input for any of the distances the program should print an error message and return a value of 2. To make this the next truly killer app we will need to add one more feature. Market studies have shown that users also want to know the average distance traveled between locations. You will need to add a counter to the program that keeps track of the number distances entered and then calculates the average distance. This information should be displayed after the total distance traveled is displayed.
Tips Remember to follow the coding guidelines laid out in the text book and in class.
Be sure you use meaningful variable names. Output and messages to the user should be neatly formatted.