The Travelling Salesman Problem

This program calculates the trip with the least cost. Given the cost of travel between a number of cities, compute the cost of some pointless wanderings between the cities.


First enter the number of locations or cities, and I will provide a suitably sized form in which you can enter the travel costs and location names.
Number of cities: