City_switch

City_switch - case'Denver disp'$150.00 case'Honolulu disp'Stay home and study LOL otherwise disp'Sorry not on file Try another city end

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
% This program will show plane ticket prices to various cities. clc City = input(' Enter the name of the city in single quotes. ') switch City case 'Boston' disp('$350.00')
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: case 'Denver' disp('$150.00') case 'Honolulu' disp('Stay home and study. LOL! ') otherwise disp('Sorry not on file. Try another city. ') end...
View Full Document

This note was uploaded on 06/17/2011 for the course COMP 1200 taught by Professor Staff during the Spring '11 term at Kennesaw.

Ask a homework question - tutors are online