Lecture 1
Lecture 1
Lecture #1
Spring 2016
Reading assignment
– Chapter 1 of the textbook
– Read about
Computer Storage
How a computer runs programs?
Pseudo Code and Flowchart
-Heat Transfer Notes
http://www.freestudy.co.uk/heat%20transfer/
2
Outline ASTU
• Computer Program
– Self-contained set of instructions used to
instruct a computer to produce specific result
• Requirement
• Phase 1: Development
– Analysis
– Design
– Coding
– Testing
• Phase 2: Documentation
• Phase 3: Maintenance
5
Requirement ASTU
6
Phase 1: Development ASTU
7
Phase 1: Development ASTU
8
Phase 1: Development ASTU
• Sequence
• Selection
• Iteration
• Invocation
9
Phase 1: Development ASTU
10
Phase 1: Development ASTU
11
Phase II: Documentation ASTU
12
Phase III: Maintenance ASTU
13
Computer Hardware ASTU
CPU
Output Devices
Secondary Memory
14
Computer Software ASTU
15
Computer Software ASTU
16
A Layered View of the Computer ASTU
Application Programs
Word-Processors, Spreadsheets,
Database Software, IDEs
System Software
Compilers, Interpreters, Preprocessors
Operating System, Device Drivers
Computer Hardware
17
Programming Languages ASTU
18
Low and High Level Languages ASTU
19
Low and High Level Languages ASTU
20
Machine Language ASTU
• One-to-many correspondence
– Each statement corresponds to several m
achine language instructions
• Much easier to program than in a
ssembly language.
• Data are referenced using descriptive n
ames
• Operations can be described using f
amiliar symbols
• Example:
cost = price + tax
23
Compiled vs. Interpreted ASTU
24
Source Code ASTU
25
Compiler ASTU
Object File
.obj
Executable File
Library Files .exe 27
.obj
Compilation Process in C++ ASTU
28
Program in Memory ASTU
29
General Notes on C++ ASTU
30
General Notes on C++ ASTU
31
Case Study: Heat Transfer ASTU
32
Case Study: Heat Transfer ASTU
33
Case Study: Heat Transfer ASTU
34
Case Study: Heat Transfer ASTU
35
Case Study: Guess a Number Game ASTU
36
Case Study: Guess a Number Game ASTU
37
Case Study: Guess a Number Game ASTU
38