I have to make a program that asks the user for 4 cities and then asks them if they want to display the 4 cities in the order they were typed in or in the reverse order. We have to have a getCities() function, a getChoice() function, and a displayInOrder() function.
getCities has to get the four city names from the user.
getChoice has to get whether or not to display in order or reverse.
displayInOrder is the display function.
We also have to put the option of letting the user do the program again.
This is the code I have so far.
When I check the output it gives me nothing so please take a look at it and get back to me.