BTP305 Course Outline

Course Code: BTP305
Course Name: Object-Oriented Software Development Using C++
Offered Date: Fall - 2017 | Other versions
Print Outline
Course Description:

This course expands the student's skill-set in object-oriented programming and introduces the student to threaded programming. The student learns to model relationships between classes using containers, inheritance hierarchies and polymorphism in the C++ programming language and to write C++ programs that execute on multiple threads.

Credit Status: 1 credit (3 units)
Required for BSD -­ Bachelor of Technology (Software Development)
Prerequisite: BTP200
Mode of Instruction: Modes: Lecture, in­-class exercises, and hands-­on activity
Hours per week: 4
Room configurations: Classroom, and computer lab
Typical scheduling pattern: Fall term
Learning Outcomes:
  • Design collections of model objects using sequential containers and multi-dimensional arrays to solve a complex systems or business problem
  • Create function objects and closures to customize a programming solution for a particular application
  • Model generalization and specialization using single and multiple inheritance to minimize the duplication of code in complex hierarchies
  • Model polymorphic behavior using interfaces, virtual functions and templates (generics) to amplify the reusability of code
  • Implement design components using algorithms of the standard template library to utilize existing technologies
  • Create program components of quadratic complexity to solve non-linear problems
  • Design program components using raw pointers, pointer arithmetic and smart pointers to access data in program memory
  • Design multi-tasked solutions using threading libraries to improve the performance of a program
  • Design file stream objects to backup text and binary data for future restoration
  • Trace the execution of program code that includes a linked list to debug an application
Employability Skills:
Execute mathematical operations accurately.|Apply a systematic approach to solve problems.|Use a variety of thinking skills to anticipate and solve problems.|Locate, select, organize, and document information using appropriate technology and information systems.|Analyze, evaluate, and apply relevant information from a variety of sources.|Interact with others in groups or teams in ways that contribute to effective working relationships and the achievement of goals.|Manage the use of time and other resources to complete projects.|
Topic Outline:
  • Introduction – 8%
    • basic concepts
      • Object-Oriented paradigm
      • terminology (type, declaration, definition, scope, storage duration, linkage, cv qualifiers)
      • namespaces (declaration, visibility, anonymous, good parctice)
      • interface with operating system
    • compilation
      • platforms (Visual Studio, GCC)
      • pre-processing directives
      • macros (object-like, function-like, pre-defined, good design)
      • incude
      • conditional (logical, definitional)
  • Types – 16%
    • fundamental types
      • integer types (standard signed, unsigned standard, boolean, character - char, wchar_t, char16_t, char32_t)
      • floating-point types - IEEE 754 - (float, double, long double)
      • void type
    • compound types
      • pointer types (nullptr, void)
      • references (lvalue, rvalue)
      • enumerations
      • enumerations
      • arrays (one-dimensional, two-dimensional, ragged)
      • classes (declarations, definitions, data initialization, move-constructors, move assignment-operators, class variables and functions, structs, unions)
  • Class Relationships - 16%
    • inheritance
      • simple inheritance (abstract and concrete classes, completing the abstract class)
      • polymorphic objects (copying operations (cloning), specializing operations for a dynamic type, run-time dynamic type identification)
      • multiple inheritance (multiple base classes, virtual inheirtance)
    • templates
      • template syntax
      • function templates (specialization, ambiguities)
      • class templates (template parameters, static members)
      • variadic templates
    • composition, aggregation, association
  • Logic – 16%
    • expressions
      • precedence
      • lvalues and rvalues
      • post-fix (subscripting, member selection, increment, decrement, typeid)
      • pre-fix (increment, decrement,
      • unary (sizeof, logical, bit-wise negation, arithmetic negation, arithmetic plus, address of, indirection, cast, noexcept, throw)
      • binary (arithmetic, bit-shifting, relational, bit-wise and, bit-wise or, bit-wise exclusive-or, logical, assignment, sequential, mixed-type expressions, good design)
      • ternary
    • functions
      • simplifying syntax (auto, trailing return type, range-based for)
      • linkage
      • recursive
      • pointers to functions (arrays of pointers)
      • function objects
      • lambda expressions
    • error handling
      • exceptions (reporting and handling, standard, no exceptions)
      • standard exists (normal, abnormal)
  • Memory Model - 8%
    • raw pointers
      • C-style character strings (addresses, string literals)
      • expressions (arithmetic, post-fix)
      • pointers to arrays (one-dimensional, two-dimensional)
    • smart pointers
      • exception handling (raw pointer solution, taking ownership)
      • exclusive ownership (unique_ptr)
      • shared ownership (shared_ptr)
  • Standard Template Library - 16%
    • introduction to linked lists
      • overview of the STL
      • concept of a linked list (collections, nodes)
      • stack
      • queue
    • sequential containers
      • containers (vector, deque, list)
      • adapters (stack, queue)
      • iterators (inserting, removing)
    • algorithm libraries
      • functional (wrapper templates, functions, operator classes)
      • algorithms (queries, modifiers, manipulators)
      • numeric (accumulate, partial sum)
  • Performance– 10%
    • multi-threading
      • performance
      • processes and threads
    • thread classes
      • thread class (member functions)
      • future library (futures, providers)
      • thread local storage duration
  • Related Topics - 10%
    • file stream objects
      • class hierarchy (ios, wios)
      • file objects (connections, direct access, reading, writing)
      • binary access (input, output)
    • string class
    • platform-dependent input and output
    • comparison of C++11 and C11 syntax
    • break, continue, goto
    • C++14 and C++17
Prescribed Text(s):
Object Oriented Software Development Using C++11
Dr. Chris M. Szalwinski
June 2014
Published by Seneca College School of ICT
Reference Material:
C++ Coding Standards
Sutter, H. and Alexandrescu, A.
Addison-Wesley, 2005
EAN 978-0-321-11358-0

The C++ Resources Network

Promotion Policy:
To obtain a credit in this subject, a student must:
  • Achieve a passing grade on the final exam
  • Satisfactorily complete all assignments
  • Achieve a passing grade on the weighted average of the tests and final exam
  • Achieve a passing grade on the overall course

Grading Policy
A+ 90%  to  100%
A 80%  to  89%
B+ 75%  to  79%
B 70%  to  74%
C+ 65%  to  69%
C 60%  to  64%
D+ 55%  to  59%
D 50%  to  54%
F 0%    to  49% (Not a Pass)
EXC Excellent
SAT Satisfactory
UNSAT Unsatisfactory

For further information, see a copy of the Academic Policy, available online (http://www.senecacollege.ca/academic-policy) or at Seneca's Registrar's Offices.

Assignments (minimum 10) 30%
Final Project 15%
Quizzes 15%
Test(s) 20%
Final Exam 20%
Approved By:
Mary-Lynn Manton
Cheating and Plagiarism:
Each student should be aware of the College's policy regarding Cheating and Plagiarism. Seneca's Academic Policy will be strictly enforced.

To support academic honesty at Seneca College, all work submitted by students may be reviewed for authenticity and originality, utilizing software tools and third party services. Please visit the Academic Honesty site on http://library.senecacollege.ca for further information regarding cheating and plagiarism policies and procedures.
Discrimination and Harassment:
All students and employees have the right to study and work in an environment that is free from discrimination and/or harassment. Language or activities that defeat this objective violate the College Policy on Discrimination/Harassment and shall not be tolerated. Information and assistance are available from the Student Conduct Office at student.conduct@senecacollege.ca.
Accomodation for Students with Disabilities
The College will provide reasonable accommodation to students with disabilities in order to promote academic success. If you require accommodation, contact the Counselling and Disabilities Services Office at ext. 22900 to initiate the process for documenting, assessing and implementing your individual accommodation needs.