C S 49: FOUNDATIONS OF COMPUTER PROGRAMMING
Foothill College Course Outline of Record
Heading | Value |
---|---|
Effective Term: | Summer 2023 |
Units: | 4.5 |
Hours: | 4 lecture, 2 laboratory per week (72 total per quarter) |
Advisory: | Intermediate Algebra or equivalent. |
Degree & Credit Status: | Degree-Applicable Credit Course |
Foothill GE: | Non-GE |
Transferable: | CSU/UC |
Grade Type: | Letter Grade (Request for Pass/No Pass) |
Repeatability: | Not Repeatable |
Student Learning Outcomes
- A successful student will be able to write and debug computer programs which make use of the fundamental control structures and method-building techniques common to all programming languages. Specifically, the student will use data types, input, output, iterative, conditional, and functional components of the language in his or her programs.
- A successful student will be able to use object-oriented programming techniques to design and implement a clear, well-structured computer program. Specifically, the student will use and design classes and objects in his or her programs.
Description
Course Objectives
The student will be able to:
- Demonstrate an understanding of the software life-cycle, including design, development, styles, documentation, testing and maintenance
- Effectively use program design tools and programming environments
- Compare and contrast procedural versus objected-oriented programming
- Use data types, variables and expressions appropriately
- Use control structures effectively
- Write algorithms, including simple sorting and searching
- Incorporate console and file input/output
- Handle run-time errors appropriately
- Make use of predefined Application Programming Interfaces
- Write programmer-defined functions
- Demonstrate comfort with applications used throughout course
Course Content
- Software life-cycle, including design, development, styles, documentation, testing and maintenance
- Coding conventions
- Naming
- Indentation
- Documentation
- Test-driven and iterative development methods
- Principles of testing and designing test data
- Coding conventions
- Program design tools and programming environments
- Navigation through the operating system file structure through well-organized storage and retrieval of files
- Storage and retrieval of files to/from a server or repository
- Writing vs. running a program
- Use of editor, compiler and debugger
- Procedural versus objected-oriented programming
- Survey of current languages
- Data types, variables, expressions
- Primitive data
- Numeric data
- Character and string data
- Boolean data
- Constants
- Lists and arrays, including multi-dimensional arrays
- Creating and evaluating numeric, character, and boolean expressions
- Type conversions and casting
- Control structure
- Selective structures: if and switch
- Repetitive structures: loops
- Code blocks
- Algorithms, including simple sorting and searching
- Console and file input/output
- Unformatted output
- Formatted output
- User input
- File and Stream I/O
- Error handling
- Syntax errors
- Run-time errors
- Logic errors
- Predefined Application Programming Interface
- Parameters
- Return values
- Programmer-defined functions
- Parameters
- Local variables
- Return values
- Passing parameters by value and by reference
- Applications used throughout course in selected areas
- Math
- Physics
- Chemistry
- Biology
- Astronomy
- Business and Finance
- Internet
- Internet of Things
Lab Content
- Using an IDE to write source code for a project and run it
- Distinguish source code from a recording of the run of a program
- Include both the source code and a recording of the run in an electronic file(s) for submission
- Identify a program's errors as originating in the compiler, the program logic, the user's runtime behavior, or the organization of the project in the IDE
- Using iterative development to progressively refine a project's features to fit a specification
- Write and test a program that implements just one of a project's required features
- Add the implementation of a second required feature to the project and test thoroughly
- Complete the project by implementing and testing the remaining features one by one
- Perform regression testing after the implementation of each new feature
- Using test-driven development to speed up debugging
- Write test code first that does not run
- Implement the code required to make the test code run successfully
- Developing programs that are well designed and easy to modify
- Outline a project first in English in an abstract way, and make this outline the project's documentation
- Separate data and computation in a program
- Use named constants to keep numbers out of a program
- Choose an appropriate data type for a program's storage
- Use a consistent and standard indentation style in the source code
- Writing expressions to be evaluated by the computer
- Correctly translate an English description of a numeric calculation into an expression that the computer can evaluate
- Get data from the user in whole numbers and convert so that the calculation takes place with floating point operations and results
- Write a complex boolean expression
- Use string manipulations to achieve a specified result
- Writing a program that interacts with the user
- Accept character data at runtime from the user to fill a program's variables with values
- Accept numerical data from the user at runtime to use in calculations
- Controlling the order in which program statements are executed
- Use branches
- Use loops
- Use function or method calls and returns
- Enclose groups of statements into blocks to achieve a desired execution sequence
- Using functions or methods to write code without repetition
- Write a function or method with no parameters and no returned value
- Write a function or method with both parameters and a returned value
- Use the scope of variables to keep data as local as possible
- Read an API to find the information needed to effectively call a function or method documented there
- Read from and write to a file system
Special Facilities and/or Equipment
2. When taught online, the college will provide a fully functional and maintained course management system through which the instructor and students can interact. Students must have ongoing access to computers with internet capabilities.
Method(s) of Evaluation
Exams
Quizzes
Programming projects
Discussions
Class presentation
Method(s) of Instruction
Lectures which include motivation for syntax and use of the object-oriented language, APIs, functional programming, example programs, and analysis of these programs
Online labs (for all sections, including those meeting face-to-face/on-campus), consisting of:
1. A programming assignment webpage located on a college-hosted course management system or other department-approved internet environment. Here, the students will review the specification of each programming assignment and submit their completed lab work
2. A discussion webpage located on a college-hosted course management system or other department-approved internet environment. Here, students can request assistance from the instructor and interact publicly with other class members
Detailed review of programming assignments, which includes model solutions and specific comments on the student submissions
In-person or online discussion which engages students and instructor in an ongoing dialog pertaining to all aspects of designing, implementing and analyzing programs
When course is taught fully online:
1. Instructor-authored lecture materials, handouts, syllabus, assignments, tests, and other relevant course material will be delivered through a college-hosted course management system or other department-approved internet environment
2. Additional instructional guidelines for this course are listed in the attached addendum of CS department online practices
Representative Text(s) and Other Materials
Downey and Mayfield. Think Java: How to Think Like a Computer Scientist, 2nd ed.. 2019.
Horstmann and Necaise. Python for Everyon, 3rd ed.. 2019.
Sebesta, Robert. Concepts of Programming Languages, 11th ed.. 2019.
Types and/or Examples of Required Reading, Writing, and Outside of Class Assignments
- Reading Assignments:
- Textbook assigned reading averaging 20 pages per week
- Reading the supplied handouts and modules averaging 10 pages per week
- Reading online resources as directed by instructor though links pertinent to programming
- Reading library and reference material directed by instructor through course handouts
- Writing Assignments:
- Writing technical prose documentation that supports and describes the programs that are submitted for grades