diff --git a/MyPlayground.playground/Pages/main.xcplaygroundpage/Contents.swift b/MyPlayground.playground/Pages/main.xcplaygroundpage/Contents.swift index ebe55fd..e1f821d 100644 --- a/MyPlayground.playground/Pages/main.xcplaygroundpage/Contents.swift +++ b/MyPlayground.playground/Pages/main.xcplaygroundpage/Contents.swift @@ -15,7 +15,7 @@ ### 1. Create a variable which represents your bank account balance. (For example: What is a good name for this variable that makes it easily readable for myself now and for the future me _or_ other developers I might be working with? Should I declare it using `let` or `var`? Should it be of type `Int` or `String`?) */ // write your code here - +var bankAccount = 50 @@ -24,7 +24,7 @@ */ // write your code here - +let puppy = "Bella" /*: question3 @@ -32,14 +32,14 @@ */ // write your code here - +print(puppy) /*: question4 ### 4. Use the `print()` function to print the sentence "I just got a new puppy named and she is awesome!" to the console. */ // write your code here - +print("I just got a new puppy named \(puppy)") @@ -47,7 +47,7 @@ ### 5. Use the `print()` function to print the sentence "I have $ in my bank account." to the console. */ // write your code here - +print("I have $\(bankAccount) in my bank account.") @@ -55,7 +55,7 @@ ### 6. Congratulations! You just got $100 for your birthday, so now you have $100 more in your bank account. Update your bank account with the new balance and print "I now have $." to the console. */ // write your code here - +print("I now have $\(bankAccount + 50).")