Question
Write a program that uses a 2D array to store the distance between 10 different cities. (Use the following cities: Killeen, Dallas, Houston, El Paso,
Write a program that uses a 2D array to store the distance between 10 different cities. (Use the following cities: Killeen, Dallas, Houston, El Paso, Sherman, Taylor, Tyler, Dime Box, Big Foot, and Frio Town.) The user should be able to select any two cities and find the distance between the cities. This program should continue to display chosen distances as long as the user submits two cities.
___________________
Killeen - Dallas:152.7 miles Killeen- Houston:188.4 miles Killeen - El Paso:571.3 miles Killeen - Sherman:216.4 miles Killeen - Taylor:42.21 miles Killeen - Tyler:186.5 miles Killeen - Dime box: 98.4 miles Killeen - Big foot:201.0 miles Killeen - Frio town:224.6 miles Dallas- Killeen :152.7 Dallas - Houston:239.0 miles Dallas- El Paso: 634.7 miles Dallas- Sherman:65.0 miles Dallas- Taylor:167.3 miles Dallas - Tyler:97.7 miles Dallas - Dime box:191.4 miles Dallas- Big foot:328.6 miles Dallas - Frio town:352.2 miles Houston - Killeen:188.4 miles Houston- Dallas :239.0 miles Houston - El paso:74.7 miles Houston - Sherman:301.6 miles Houston - Taylor:154.2 miles Houston - Tyler:198.2 miles Houston- Dime box:106.1 miles Houston- Big foot :233.9 miles Houston - Frio town:254.4 miles El paso- Killeen:571.3 miles El paso- Dallas:634.7 miles El paso- houston:74.7 miles el paso- sherman:692.9 miles el paso - taylor:607.3 miles el paso- tyler: 732.5 miles el- paso - dime box:641.8 miles el paso - big foot:570.4 miles el paso - frio town: 540.5 Sherman - kileen:216.4 miles sherman - dallas :65.0 miles sherman - houston :301.6 miles sherman - el paso: 692.9 miles sherman - taylor:232.0 miles sherman- tyler:127.2 miles sherman- dime box:257.4 miles sherman- big foot:377.3 miles sherman- frio town: 400.9 miles taylor - killeen:42.21 miles taylor- dallas:167.3 miles taylor- houston:154.2 miles taylor- el paso:607.3 miles taylor- sherman: 232.0 miles taylor-tyler:189.7 miles taylor- dime box:45.9 miles taylor- big foot:163.7 miles taylor - frio town: 187.3 miles Tyler - killeen:186.5 miles Tyler- dallas:97.7 miles Tyler- houston:198.2 miles Tyler- el paso:732.5 miles Tyler- sherman:127.2 miles Tyler-taylor:189.7 miles Tyler- dime box:183.0 miles Tyler- big foot:346.5 miles Tyler - frio town:370.2 miles Dime box - killeen:98.4 miles dime box- dallas:191.4 miles dime box- houston:106.1 miles dime box-el paso:641.8 miles dime box- sherman:257.4 miles dime box- taylor:45.9 miles dime box-tyler:183.0 miles dime box-big foot:177.0 miles dime box-frio town:197.5 miles big foot- killeen:201.0 miles big foot--dallas:328.6 miles big foot-houston:233.9 miles big foot-el paso: 570.4 miles big foot-sherman:377.3 miles big foot-taylor:163.7 miles big foot-tyler:346.5 miles big foot-dime box:177.0 miles big foot-frio town:30.2 miles frio town-killeen:224.6 miles frio town- dallas :352.2 miles frio town- houston:254.4 miles frio town- el paso:540.5 miles frio town- sherman:400.0 miles frio town- taylor:187.3 miles frio town- tyler:370.2 miles frio town- dime box:197.5 miles frio town- big foot:30.2 miles
Help me please !!! My logic is weak and this assignment seems more then i know how to do. Please an explanation with it would help my teacher is rushing!!!!!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started