Question: In a script called trainCost.m prompt the user to enter the name of a city and use the switch statement to find the cost of

 In a script called trainCost.m prompt the user to enter the

In a script called trainCost.m prompt the user to enter the name of a city and use the switch statement to find the cost of a train ticket to that city and display the cost in a proper message. Use the following list to determine the cost: destination cost Boston $345 Denver $150 New York $236 Lost Angeles $500 If the city is not on the list, display a proper message. For example, if the use enters Honolulu, the message should be " Sorry, this station does service to Honolulu!" Upload your script here

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!