Active Outline
General Information
- Course ID (CB01A and CB01B)
- CISD005.
- Course Title (CB02)
- Swift Programming
- Course Credit Status
- Credit - Degree Applicable
- Effective Term
- Fall 2023
- Course Description
- Swift is Apple's open source language used to develop native iOS and Mac OS apps. Swift was designed to be beginner friendly. Topics covered include: native and collection data types, operators and statements, loops and branching, functions and variable scoping, modules and packages, object oriented programming, file handling, regular expressions and exception handling.
- Faculty Requirements
- Course Family
- Not Applicable
Course Justification
This course is UC/CSU transferable. This course in Swift Programming language prepares students to learn how to create applications for Apple (iOS, MacOS, watchOS, tvOS) devices and gives students a thorough introduction to one of the most popular programming languages in the high technology and finance industries. This course is part of the Certificate of Achievement in Web Development.
Foothill Equivalency
- Does the course have a Foothill equivalent?
- No
- Foothill Course ID
Formerly Statement
Course Development Options
- Basic Skill Status (CB08)
- Course is not a basic skills course.
- Grade Options
- Letter Grade
- Pass/No Pass
- Repeat Limit
- 0
Transferability & Gen. Ed. Options
- Transferability
- Transferable to both UC and CSU
Units and Hours
Summary
- Minimum Credit Units
- 4.5
- Maximum Credit Units
- 4.5
Weekly Student Hours
Type | In Class | Out of Class |
---|---|---|
Lecture Hours | 4.0 | 8.0 |
Laboratory Hours | 1.5 | 0.0 |
Course Student Hours
- Course Duration (Weeks)
- 12.0
- Hours per unit divisor
- 36.0
Course In-Class (Contact) Hours
- Lecture
- 48.0
- Laboratory
- 18.0
- Total
- 66.0
Course Out-of-Class Hours
- Lecture
- 96.0
- Laboratory
- 0.0
- NA
- 0.0
- Total
- 96.0
Prerequisite(s)
Corequisite(s)
Advisory(ies)
- ESL D272. and ESL D273., or ESL D472. and ESL D473., or eligibility for EWRT D001A or EWRT D01AH or ESL D005.
- Intermediate algebra or equivalent (or higher), or appropriate placement beyond intermediate algebra
Limitation(s) on Enrollment
Entrance Skill(s)
General Course Statement(s)
Methods of Instruction
Lecture and visual aids
Discussion of assigned reading
Discussion and problem solving performed in class
Quiz and examination review performed in class
Homework and extended projects
Collaborative learning and small group exercises
Collaborative projects
Laboratory discussion sessions and quizzes that evaluate the proceedings weekly laboratory exercises
Assignments
- Reading: Required reading from the textbook and class notes.
- Programs: 8-10 programming homework assignments, several with 200 or more lines of code.
Methods of Evaluation
- Evaluation of programming assignments for correctness, use of structured design principles, documentation and efficiency
- One or more examinations requiring programming ability to develop an algorithm, evaluate code segments, and write code using specific programming constructs presented in the course.
- In-class lab problems, group collaborative problems, exam questions and/or online assignments or tutorials demonstrating the ability to read and analyze code through debugging and/or writing snippets of code.
- A final examination requiring some programming ability to develop an algorithm, evaluate code segments, and write code using specific programming constructs presented in the course.
Essential Student Materials/Essential College Facilities
Essential Student Materials:Â
- Access to a Mac computer with Xcode and Swift
- Access to a Mac computer lab with Xcode and Swift
Examples of Primary Texts and References
Author | Title | Publisher | Date/Edition | ISBN |
---|---|---|---|---|
The Swift Apprentice Third Edition: Beginning programming with Swift 4 by raywenderlich.com Team Year: 2017 ISBN-10: 1942878435 ISBN-13: 978-1942878438 |
Examples of Supporting Texts and References
Author | Title | Publisher |
---|---|---|
Core Data by Tutorials Fourth Edition: iOS 11 and Swift 4 edition by raywenderlich.com Team Year: 2017 ISBN-10: 1942878362, ISBN-13: 978-1942878360 |
Learning Outcomes and Objectives
Course Objectives
- Declare and use appropriate data types for variables
- Code statements that use expressions, operators, and built-in functions to compute values
- Apply control structures to create loops and conditional blocks of code
- Write code to handle data input/output through standard IO and files
- Implement user-defined functions for modularization of code
- Import and use common Swift kits and packages
- Create custom classes and apply object oriented programming concepts
- Handle exceptions in the program
- Utilize regular expressions for text parsing
CSLOs
- Design, code, document, analyze, debug, and test introductory level Swift programs that include Swift kits.
- Code and debug Swift programs using Xcode Playgrounds - Apple's IDE for Swift programming.
Outline
- Declare and use appropriate data types for variables
- Keywords and identifiers
- Swift Data Types
- Integers
- Boolean
- Double
- Characters
- Strings
- Collections
- Sequence: Tuples and Lists
- Sets
- Dictionaries
- Iterate and Copy Collections
- Code statements that use expressions, operators, and built-in functions to compute values
- Arithmetic operators
- Assignment operators
- String operators and methods
- Relational operators
- Logical operators
- Membership operators
- Apply control structures to create loops and conditional blocks of code
- Selection statements
- if else statement
- Nested if statements
- Loops
- for loop
- while loop
- repeat-while loop
- Loop control statements
- Nested loops
- Selection statements
- Write code to handle data input/output through standard IO and files
- Output formatting
- Print and input functions
- File IO
- File and directory access
- Working with Core Data
- Implement user-defined functions for modularization of code
- Defining a function
- Calling a function
- Function arguments
- Required arguments
- Keyword arguments
- Default arguments
- Variable-length arguments
- Import and use common Swift kits and packages
- import statements
- Namespace and scoping
- Create custom classes and apply object oriented programming concepts
- Creating classes and instances
- Overloading operators and methods
- Data hiding
- Inheritance
- Overriding parent class methods
- Handle exceptions in the program
- Standard exceptions
- try catch blocks
- Raise an exception
- Utilize regular expressions for text parsing
- Regular expression set
- Regular expression operators
- Regular expression patterns
- match vs. search
- substitute
Lab Topics
- Debug code and output results of execution
- Write and debug code that uses arithmetic expressions
- Write and debug code that uses selection statements and decision points
- Write and debug code using loops to implement repetition concepts
- Write and debug code that implements multiple user defined functions
- Write and debug code implementing file I/O
- Write and debug code that uses collection data types
- Write and debug code that uses exception handling
- Write and debug code that uses regular expressions