Study Guides (400,000)
CA (160,000)
Western (10,000)

Engineering Science 1036A/B Study Guide - Midterm Guide: Order Of Operations, Carriage Return, Primitive Data Type

Engineering Science
Course Code
Quazi Rahman
Study Guide

This preview shows pages 1-2. to view the full 6 pages of the document.
Jan 6
Assignments due on Monday each week
Quiz each week at the beginning of the lab (Material from assignment)
Jan 20 – no quiz
Jan 10
CPU: ALU + CU (+ Cache)
Engineering Problem Solving
Specification: Requirements, precise statement of what system will do, functional/IO/performance,
and hardest problems.
Design: Decompose system, find interfaces, and combine with algorithm (ordered sequence of
instructions to get from input to output). (Input, validation, calculation, and display).
Implementation: Identify platform, language, and IDE.
Testing: Test code from different angles. Ensure implemntation meets requirements. Test plan must
include steps followed, inputs, and outputs.
Jan 15
<<: Stream insertion operator
endl, cout: objects
#: preprocessor directive
Different types of statement include:
# Declaration statements
# Assignment statements
# Compound statements (also known as block statements)
# One or more C++ statements enclosed between curly braces ‘{‘ and ’}’
# Selection statements (if else)
Jan 17
C++ to machine language
Text Editor
instructions written using editor
source code to secondary storage in .cpp
modifies source by adding other files (.h) and performing text replacement

Only pages 1-2 are available for preview. Some parts have been intentionally blurred.

translates source code into object code (.obj) (binary)
scans library preprocessor directives have included (<iostream>)
selects function needed
links them into executable (.exe)
loads executable into internal memory
executes programs, instruction by instruction
includes editor, compiler, linker, and debugger
Syntax: Grammatical
Runetime: operation occuring during execution is impossible
Logical: Program does not perform as expected
memory spaces reserved
must be identified by a name, declared before it
size depends on type
names can contain
A-Z, a-z
$ and _
cannot start with a digit
cannot be a reserved word
identifiers can be any length, but 31 or less ensures portability
int: 4 byte
float: 4 byte
double: 8 byte
char: 1 byte
bool: 1 byte
, means same data type
; allows different data type
You're Reading a Preview

Unlock to view full version