Revised: 24 March 2015
In this lab, you will explore the Swift programming language, using Xcode playgrounds.
- Review the following resources on the Swift language (and look for a few others on your own):
- Optional Swift textbook, if you have a copy
- Apple Swift introduction: developer.apple.com/swift/
- Apple Swift resources: developer.apple.com/swift/resources/
- Apple blog post on Swift REPL: developer.apple.com/swift/blog/?id=18
- Ray Wenderlich's Swift tutorial www.raywenderlich.com/74438/swift-tutorial-a-quick-start
- Identify at least four of the following Swift topics that you would like to
investigate and experiment with:
- Numeric data types and operations
- Arrays and dictionaries
- Selection and iteration statements (if, switch, while, for, and their variations) and logical operators
- Function declaration and invocation, with varying arguments and return values
- Class declaration and use
- Design and implement Swift code to investigate your chosen Swift topics,
using an Xcode playground or project.
- You don't have to implement a user interface, but you may do so if you wish, as long as it does not get in the way of exploring the Swift language.
Submission (due Wednesday, 25 March 2105, at 11PM)
There is no separate lab report for this lab, but be sure to submit at least one question in the prescribed format. The question(s) you submit should be non-trivial, and demonstrate the investigation and research that you did.
Note that the submitted file is to be in Markdown source (markup) format, not HTML.
Ask the instructor if you have questions.