Week 3

Compile-Link Process, Variables,
 Data Types, Constants,
Assignment Statements

Learning Objectives

    Understand the Compile Link process

    Variables

      Variable naming rules
      Data Types (int, double, char)
      Constants

    Assignment statement

    Arithmetic operators

      +, -, *, /, %
      Integer vs. float division
      Precedence & parentheses

    Comments

      Standard Header
      Required Comments

    Computer language syntax

At the end of the week you should be able to:

     Identify the proper data type to use for a variable

     Declare variables and constants within a C++ program.

     Convert a series of math operations into a syntactically correct C++ math expression

     Evaluate a C++ math expression to find its numerical value

     Know the difference between integer and floating point division.

     Place comments in your C++ program.

Reading Assignment

Section 2.2, Pages 50 - 60 (Input/Output)

Section 5.2 (first part), Pages 247-253 (Formatting)

Take-Home Assignment

[Home] [About Me] [Office Hours] [CIS 121] [CIS 123] [CIS 127] [CIS 226] [CIS 227]