Swift

Solution - Movie Ticket Vendor

Our solution to the mini-project

Our Solution

Here is our solution. Your solution does not have to look like ours. If it works and is concise, then you’ve done it right!

var picked_movie = "Cars 3"
switch picked_movie {
    case "Cars 3": print("This movie costs $15.99 and is rated 5/5 stars. Next showing is at 10:30pm")
    case "Fallout": print("This movie costs $18.99 and is rated 4.6/5 stars. Next showing is at 11:30pm")
    case "Men in Black": print("This movie costs $12.99 and is rated 3.1/5 stars. Next showing is at 8:15pm")
default: print("I'm not sure what movie that is")
}    

Feel free to contact us if you have any questions.

chevron_up