CMPUT 282
Programming Methods and Applications
Winter Term 2027 |
Instructor: TBA |
Total lectures: 40 Lectures |
Office Hours: TBA |
Lecture Length: 145 Minutes |
Classroom: TBA |
Credits: 3 Units |
Class Length: 8 Weeks |
Language: English |
Course Overview:
This course provides a hands-on introduction to robust software development practices and fundamental programming methods. Students will explore essential software tools, including scripting languages, system utilities, and libraries, for constructing small to moderately complex software systems. Key topics encompass advanced C programming, memory management with pointers and data structures, and the modular decomposition of programs. The curriculum also
integrates critical aspects of system development, testing, and maintenance, emphasizing version control with Git, build process automation using Makefiles, and practical command-line
proficiency within UNIX/Linux environments, including BASH scripting.
Required Material:
The required textbook for this course is Stephen Kochan, Programming in C, 4th edition. Additional instructor-provided lecture notes and supplementary materials may be used to support selected topics covered in the course.
Learning Objectives:
1. Construct moderately complex, bug-free C programs, effectively managing memory with pointers and fundamental data structures.
2. Decompose large software projects into separately-compiled modules and manage the software build process using Makefiles and object module libraries.
3. Apply version control systems, specifically Git, to collaborate on software development projects and manage program evolution in a team setting.
4. Utilize system utilities, scripting languages, and UNIX/Linux commands, including BASH scripting, to automate tasks and navigate operating system environments.
Course Outline:
Week 1: Programming Environment and C Fundamentals
Lecture 1: Course Introduction and Software Development Context
• Overview of the course and its learning objectives.
• Introduction to fundamental concepts of System Development.
Lecture 2: UNIX/Linux Command Line and System Utilities
• Navigating UNIX/Linux environments using basic UNIX/Linux Commands.
• Utilizing essential System Utilities and Software Tools.
Lecture 3: First C Programs: Syntax, Compilation, Execution
• Introduction to C Programming syntax and basic program structure.
• Understanding Program Compilation and execution of C code.
Lecture 4: Variables, Basic C Data Types, and Expressions
• Declaring and initializing C Program Variables.
• Exploring basic C Data Types and their usage in expressions.
Lecture 5: Introduction to Git and Version Control Systems
• Fundamentals of Version Control Systems and their importance.
• Basic Git Commands for individual project management.
Laboratory 1: Development Environment Setup and Basic C
• Setting up the UNIX/Linux development environment with System Utilities.
• Writing, compiling, and running simple C Programs using basic Git.
Week 2: Memory, Pointers, and Arrays in C
Lecture 6: C Program Variables: Representation and Storage in Memory
• Analyzing how C Program Variables are represented in memory.
• Understanding the storage mechanisms for different data types.
Lecture 7: Pointers: Declaration, Initialization, Dereferencing
• Declaring and initializing Pointers for memory addresses.
• Using dereferencing to access values at memory addresses.
Lecture 8: Pointer Arithmetic and Array Relationship
• Applying Pointer Arithmetic for memory manipulation.
• Examining the close relationship between Pointers and Arrays.
Lecture 9: Arrays: Declaration, Access, and Storage
• Declaring and accessing elements within Arrays.
• Understanding Arrays representation and storage in memory.
Lecture 10: Memory Inspection and Basic C Memory Tools
• Using System Utilities for inspecting program memory.
• Introduction to memory management concepts in C Programming.
Laboratory 2: Pointers, Arrays, and Dynamic Memory
• Practicing with Pointers and Arrays to manipulate memory addresses.
• Implementing dynamic memory allocation and deallocation in C Programming.
Week 3: Program Structure and Build Process Automation
Lecture 11: Control Flow and Functions in C Programming
• Implementing conditional statements and loops for program flow.
• Defining and calling functions as part of Programming Practices.
Lecture 12: Program Decomposition with Functions
• Strategies for Program Decomposition into smaller, manageable functions.
• Enhancing code organization and reusability in C Programming.
Lecture 13: Separately-Compiled Modules
• Understanding the benefits of Separately-Compiled Modules.
• Managing multiple source files during Program Compilation.
Lecture 14: Program Linking and Software Build Process
• Concepts of Program Linking and creating executable files.
• Overview of the Software Build Process from source to binary.
Lecture 15: Build Process Automation with Makefiles
• Introduction to Makefiles for automating the build process.
• Configuring Build Process Automation for complex projects.
Laboratory 3: Modular C Programs and Makefiles
• Implementing modular C Programming across multiple source files.
• Creating and using Makefiles for efficient Software Build Process.
Week 4: Compound Data Structures and Libraries
Lecture 16: Structs and Unions in C Programming
• Defining and using structs to create Compound Data Structures.
• Exploring unions for memory-efficient data representation in C.
Lecture 17: Designing Custom Compound Data Structures
• Principles for designing effective Compound Data Structures.
• Practical examples of combining data types into custom structures.
Lecture 18: File I/O in C Programming
• Performing input and output operations with files in C Programming.
• Handling file streams and error conditions for robust applications.
Lecture 19: Building an Object Module Library
• Understanding the structure and benefits of an Object Module Library.
• Steps for building reusable code components into libraries.
Lecture 20: Using Software Libraries
• Integrating and utilizing existing Software Libraries in C projects.
• Linking against static and dynamic Object Module Library files.
Laboratory 4: Custom Data Structures and Library Creation
• Designing and implementing custom Compound Data Structures.
• Building and using a simple Object Module Library for code reuse.
Week 5: Dynamic Data Structures and Advanced C
Lecture 21: Introduction to Dynamic Linked Data Structures
• Concepts of dynamic memory allocation for flexible data storage.
• Overview of common Linked Data Structures like lists and trees.
Lecture 22: Implementing Singly Linked Lists
• Design and implementation of basic Singly Linked Data Structures.
• Operations like insertion, deletion, and traversal in C Programming.
Lecture 23: Implementing Doubly Linked Lists
• Structure and implementation of Doubly Linked Data Structures.
• Advantages and disadvantages compared to singly linked lists.
Lecture 24: Advanced Pointer Usage in Data Structures
• Complex manipulations of Pointers for efficient structure management.
• Using Pointers to navigate and modify Linked Data Structures.
Lecture 25: Recursion and Robust C Programming Practices
• Applying recursion to solve programming problems effectively.
• Programming Practices for writing bug-free, moderately complex C programs.
Laboratory 5: Dynamic Linked Data Structures Implementation
• Implementing and debugging dynamic Linked Data Structures using malloc and free.
• Applying advanced Pointers for managing complex C Programming constructs.
Week 6: Operating Systems Interaction and Scripting
Lecture 26: Operating Systems Fundamental Concepts
• Introduction to the core principles of Operating Systems.
• Understanding the role of the OS in program execution.
Lecture 27: UNIX Processes and Linux Filesystem
• Fundamental concepts of UNIX Processes and their lifecycle.
• Exploring the structure and navigation of the Linux Filesystem.
Lecture 28: Advanced UNIX/Linux Commands and System Utilities
• Utilizing advanced UNIX/Linux Commands for system interaction.
• Leveraging various System Utilities for system administration.
Lecture 29: BASH Shell Scripting for Task Automation
• Introduction to BASH Shell Scripting as a Scripting Language.
• Developing non-trivial scripts for automating tasks effectively.
Lecture 30: Collaborative Git Workflows and Team Software Development
• Managing program evolution with Git Commands for small teams.
• Practicing Version Control Systems in Software Development (small-team level).
Laboratory 6: BASH Scripting and Collaborative Git
• Developing BASH Shell Scripting for automating system tasks.
• Practicing Git Commands for collaborative workflows including branching and merging.
Week 7: Software Development Lifecycle: Testing and Maintenance
Lecture 31: Principles of Software Development and System Development
• Key principles of Software Development at individual and small-team level.
• Overview of the System Development lifecycle phases.
Lecture 32: Software Testing Methodologies
• Introduction to unit testing and integration testing strategies.
• Techniques for identifying and preventing bugs in C Programming.
Lecture 33: Debugging Techniques and Tools for C
• Applying various debugging techniques to C programs.
• Utilizing debugging Software Tools to resolve program issues.
Lecture 34: Software Maintenance Strategies and Programming Practices
• Introduction to Software Maintenance and its importance.
• Best Programming Practices for enhancing code longevity and adaptability.
Lecture 35: Robust C Programming Practices
• Review of techniques for writing bug-free and efficient C Programming.
• Ensuring code reliability and performance through effective practices.
Laboratory 7: C Program Testing and Debugging
• Developing test cases for C Programming and performing Software Testing.
• Using debugging tools and refactoring code for Software Maintenance.
Week 8: Applications and Advanced Topics
Lecture 36: Case Studies in Programming Methods and System Development
• Analyzing practical applications of C Programming methods.
• Exploring real-world challenges in System Development projects.
Lecture 37: Performance and Memory Optimization in C
• Strategies for optimizing C Programming performance.
• Considerations for efficient memory utilization in complex systems.
Lecture 38: Command-Line Debugging Tools
• Introduction to advanced command-line debugging tools like GDB.
• Utilizing Software Tools for in-depth program analysis.
Lecture 39: Cross-Platform Development and Build Automation
• Concepts of cross-platform compilation and environment management.
• Introduction to advanced build automation tools beyond Make, such as CMake.
Lecture 40: Course Review and Future Directions in Programming
• Comprehensive review of key course concepts and Programming Practices.
• Discussion of emerging trends and advanced topics in software engineering.
No lab in final week.
Grading Assessment:
Lab Report 1 |
15% |
Lab Report 2 |
15% |
Midterm |
30% |
Final exam |
30% |
Seminar Participation |
10% |
Total |
100% |
Lab Report:
Students are required to complete laboratory reports based on selected experiments conducted during the course. Each report should clearly present the purpose of the experiment, relevant background information, experimental methods, results and data analysis, discussion of findings, and a well-supported conclusion. Students are expected to demonstrate accurate interpretation of experimental data, critical thinking, clear organization, and appropriate use of evidence. Grading will focus on the accuracy and completeness of the report, clarity of writing, logical organization, quality of data analysis and discussion, and appropriate use and citation of references. Reports
must be submitted electronically in the required format and by the specified deadlines. Feedback may be provided to help students improve their scientific writing, analytical skills, and
understanding of experimental results.
Attendance:
Regular attendance and active participation are expected. Students are responsible for all material covered during scheduled lectures and are expected to complete assigned work in accordance with course requirements.
Exams:
A midterm examination will assess theoretical understanding of programming principles and
system concepts through problem-solving and analytical questions. The final examination will be comprehensive, evaluating mastery of C programming, data structures, and software
development methodologies. Laboratory sessions will culminate in detailed lab reports and practical demonstrations, assessing hands-on application, data interpretation, and experimental analysis of implemented software solutions.
Final Evaluation:
Letter Grade |
Percentage (%) |
Letter Grade |
Percentage |
A+ |
≥95 |
C+ |
64-67 |
A |
89-94 |
C |
60-64 |
A- |
84-88 |
C- |
56-59 |
B+ |
79-83 |
D+ |
54-56 |
B |
73-78 |
D |
50-53 |
B- |
68-72 |
F |
≤50 |
General Policies:
Academic integrity
Academic integrity is the cornerstone of academia and requires students and researchers to
maintain honesty, fairness, trust and responsibility in all academic activities. It includes not only avoiding dishonest behaviors such as plagiarism, cheating, and falsifying data, but also requires
taking responsibility for one's own academic actions and ensuring that all work is done
independently and accurately cites the research of others. Violations of academic integrity can result in severe academic penalties, such as zero grades, suspension or even expulsion, and can cause serious damage to an individual's reputation and future career. Upholding academic
integrity is therefore essential to promoting a fair academic environment and facilitating the authentic dissemination of knowledge.
Accessible Resources Policy
The policy ensures that all students, especially those with disabilities, are able to participate equally in school learning and activities. The school provides a wide range of accessibility resources including, but not limited to, specialized classrooms, hearing aids, Braille textbooks, assistive technology, and flexible testing arrangements. Students are required to apply to the school in advance and provide appropriate medical or psychological evaluations so that an
individualized support plan can be developed for them. This policy is designed to remove barriers in the academic environment and to ensure that every student has access to equitable learning opportunities.
Withdrawal Policy
Students may choose to withdraw from a course within a specified period of time, and may not be able to do so after the expiration date. When withdrawing from a course, students are required to fill out a withdrawal form with a reason, which will be reviewed and processed on a case-by- case basis. Withdrawal from a course may not affect the student's academic performance. If a
student withdraws from a course with incomplete requirements, a “W” may be assigned instead of a grade, depending on the course.