Module 1: Program Design

Solving problems in C++

Language Topics: C++ Review

  • Variables, data types and arithmetic
  • Input and Output
  • Conditional selection (branching)
  • Functions and libraries
  • Loops
  • Arrays
  • Structured Data
  • Classes

Textbook chapters 1-7, 9

Tue, Jan 17

Course overview

Writing a C++ program

  • Visual Studio project setup
  • Adding libraries with #include
  • The main function
  • Basics of compiling (building in Visual Studio)
  • Inch/cm converter: converter.cpp

1370 slides (for your reference)

Textbook References

  • Chapter 1, sections 1-6
  • Chapter 2, sections 1-6, 8, 11-14

Thu, Jan 19

The Plan

  • Class roster
  • Pre-reqs
  • Module 1 content
  • Recitation section scheduling
  • Visual Studio mac notes

C++ review: selection and functions

  • add, max, roll

Textbook References

  • Chapter 2, sections 16, 17
  • Chapter 3, sections 1-4, 6, 7
  • Chapter 6, sections 1-5

1370 slides (for your reference)


Assignments (due T 1/24, always by class time)

  • Buy book (see course info page)
  • Install Visual Studio at home (see home page for guide)
  • Read chapters 1, 2, 3 and 6.1-6.5
  • Complete Self Check exercises 2.23, 2.25, 3.17, 6.19 and 6.20

Tue, Jan 24

C++ topics

  • Unit Tests (assert)
  • Iteration (while and for loops)
  • counting, conditional, accumulation

Textbook References

  • Chapter 6, section 6
  • Chapter 4, sections 1-8

1370 slides (for your reference)


Assignments (due T 1/31, always by class time)

  • Complete Self Check exercises 4.14, 4.16, 4.17, 5.24, 5.25

Thu, Jan 26

C++ topics

  • Finish up multiple exit conditions
  • Guessing game
  • Arrays

Textbook References

  • Chapter 5, sections 1-6, 17

1370 slides (for your reference)

Tue, Jan 31

C++ topics

  • Reference Parameters (exercise)
  • Function Prototypes

Textbook References

  • Chapter 6, sections 7-11

1370 slides (for your reference)


Assignments

  • Complete Self Check exercises 6.20, 5.24 if you didn't get them (due Th 2/2)
  • Complete Self Check exercises 6.22, 6.26, 6.28, 7.21, 7.22 (due T 2/7)

Thu, Feb 2

C++ topics

  • Classes and Objects (point)
  • Structured Data
  • Separate Files

Textbook References

  • Chapter 7, sections 1-4, 6-11
  • Chapter 6, section 15

1370 slides (for your reference)

Tue, Feb 7

Meet in ACSB 2.110 (lab)

Course slack team

Topics

  • Using Visual Studio
  • Using Source Control (SVN)
  • Test-Driven Programming

Assignments

  • Point lab (distance function and method, 2 tests each) due by email by class time on Th 2/9

Thu, Feb 9

Module 1 Exam