diff --git a/Codecademy.playground/Pages/Museum.xcplaygroundpage/Contents.swift b/Codecademy.playground/Pages/Museum.xcplaygroundpage/Contents.swift new file mode 100644 index 0000000..ac2e764 --- /dev/null +++ b/Codecademy.playground/Pages/Museum.xcplaygroundpage/Contents.swift @@ -0,0 +1,15 @@ + + +let adults = 2 +let students = 15 + +// Write your code below 🏛️ + +func museumEntry(_ numAdults: Int, _ numStudents: Int) -> Int { + let studentTicket = 14 + let adultTicket = 25 + let total = (studentTicket * numStudents) + (adultTicket * numAdults) + return total +} + +print(museumEntry(adults, students))