Spring 2021 - CMPT 129 D100

Introduction to Computing Science and Programming for Mathematics and Statistics (3)

Class Number: 6152

Delivery Method: In Person


  • Course Times + Location:

    Mo, We, Fr 3:30 PM – 4:20 PM

  • Exam Times + Location:

    Apr 26, 2021
    7:00 PM – 10:00 PM

  • Prerequisites:

    CMPT 102 or CMPT 120.



A second course in computing science and programming intended for students studying mathematics, statistics or actuarial science and suitable for students who already have some background in computing science and programming. Topics include: a review of the basic elements of programming: use and implementation of elementary data structures and algorithms; fundamental algorithms and problem solving; basic object-oriented programming and software design; computation and computability and specification and program correctness. Students with credit for CMPT 125 or 135 may not take this course for further credit. Quantitative.


This course is a rigorous introduction to computing science and computer programming aimed at students who have already completed a basic computing science or programming course. Students will learn fundamental concepts of computing science as well as develop basic skills in software development, with application to problems in mathematics and allied areas. NOTES REGARDING ONLINE PARTICIPATION FOR THIS COURSE 1) Assignments will be in an online format. 2) Zoom will be used for lectures and office hours. 3) Students must have access to a computer with internet access, a keyboard, and a webcam for use during quizzes and exams. 4) Some lectures/tutorials will be prerecorded/provided before the scheduled lecture times. For these lectures materials provided before the lecture time will be discussed along with examples during the scheduled lecture time. 5) Other lectures will be presented live during the lecture time. 6) All lectures will be available online after the lecture has occurred. 7) Some components of the course will require real-time participation during the scheduled lecture and/or exam times.



  • C/C++ review of ifs/loops, basic input and output using C++
  • Writing simple functions, arguments passed by value and by reference
  • File input and output, error handling,
  • 1 and 2-D arrays
  • Pointers, dynamic allocation of arrays, using arrays as function arguments
  • Recursion
  • Linear and binary search, algorithms for methods of sorting, Empirical comparison of sorting methods
  • Introduction to classes
  • Data structures (some as examples of classes), stacks, hash tables, linked lists



30% lab quizzes `20% assignments 20% midterm 30% final

Students must attain an overall passing grade on the weighted average of exams in the course in order to obtain a clear pass (C- or better).



  • Starting Out with C++: From Control Structures through Objects, 9th Edition, Gaddis, Pearson, 2017, 9780134498379

Registrar Notes:


SFU’s Academic Integrity web site http://www.sfu.ca/students/academicintegrity.html is filled with information on what is meant by academic dishonesty, where you can find resources to help with your studies and the consequences of cheating.  Check out the site for more information and videos that help explain the issues in plain English.

Each student is responsible for his or her conduct as it affects the University community.  Academic dishonesty, in whatever form, is ultimately destructive of the values of the University. Furthermore, it is unfair and discouraging to the majority of students who pursue their studies honestly. Scholarly integrity is required of all members of the University. http://www.sfu.ca/policies/gazette/student/s10-01.html


Teaching at SFU in spring 2021 will be conducted primarily through remote methods. There will be in-person course components in a few exceptional cases where this is fundamental to the educational goals of the course. Such course components will be clearly identified at registration, as will course components that will be “live” (synchronous) vs. at your own pace (asynchronous). Enrollment acknowledges that remote study may entail different modes of learning, interaction with your instructor, and ways of getting feedback on your work than may be the case for in-person classes. To ensure you can access all course materials, we recommend you have access to a computer with a microphone and camera, and the internet. In some cases your instructor may use Zoom or other means requiring a camera and microphone to invigilate exams. If proctoring software will be used, this will be confirmed in the first week of class.

Students with hidden or visible disabilities who believe they may need class or exam accommodations, including in the current context of remote learning, are encouraged to register with the SFU Centre for Accessible Learning (caladmin@sfu.ca or 778-782-3112).