APSC 142 Introduction to Computer Programming for Engineers 2 Units: 2.30
This course introduces concepts, theory and practice of computer programming. The emphasis is on the design of correct and efficient algorithms and on programming style, building from APSC 141. Applications are made to engineering problems.
(Lec: 1.5, Lab: 0.8, Tut: 0)
(Lec: 1.5, Lab: 0.8, Tut: 0)
Requirements: Prerequisites: APSC 141
Corequisites:
Exclusions:
Offering Term: W
CEAB Units:
Mathematics 0
Natural Sciences 0
Complementary Studies 0
Engineering Science 28
Engineering Design 0
Offering Faculty: Smith Engineering
Course Learning Outcomes:
- Correctly index 1D and 2D arrays for assigning and returning element values.
- Declare and initialize strings and utilize string functions to manipulate string elements.
- Reproduce simple algorithms for searching and sorting 1D arrays, and arrays of strings.
- Utilize pointers to access memory addresses and implement the basics of memory allocation and management.
- Simplify programs using functions with pass-by-value and pass-by reference inputs and set variable scopes appropriately.
- Analyze real-life engineering problems and create code to achieve solutions while following a systematic approach.
- Automate requirements testing by writing effective unit and functional tests.
- Identify common insecure coding practices and apply mitigations.
- Use proper coding techniques for syntax, indentation, commenting, and variable naming.
- Implement debugging strategies to detect, find, and rectify programming errors.