Skip to content

Instantly share code, notes, and snippets.

@kcelestine
Created June 10, 2014 02:41
Show Gist options
  • Save kcelestine/379b74e5127e542aea1e to your computer and use it in GitHub Desktop.
Save kcelestine/379b74e5127e542aea1e to your computer and use it in GitHub Desktop.
puts "Welcome to Khadijah's homework"
loop do
puts "Enter (L)/tThe (L) Train"
puts "Enter (N)/tThe (N) Train"
puts "Enter (S)/tThe (S)ix Train"
puts "Enter (Q)/tQuit and exit"
print "Please choose an option: "
choice = gets.chomp
if choice == "L"
puts "The (L) Train"
puts "8th Ave | 6th Ave | Union Square | 3rd Ave | 1st Ave | Bedford Ave"
elsif choice == "N"
puts "The (N) Train"
puts "Times Square | Herald Square | 28th St | 23rd St - HAMco Terminal | Union Square | 8th St"
elsif choice == "S"
puts "The (S)ix Train"
puts "Grand Central | 33rd St | 28th St | 23rd St | Union Square | Astor Place"
elsif choice == "Q"
puts "Thank you and Goodbye!\n"
exit
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment