Академический Документы
Профессиональный Документы
Культура Документы
to Computer
Programming
Week 02
Chapter 2:
Input, Processing and
Output
DHerrin-ClassOnline.Com
Chapter Topics
2.1 Designing a Program
2.2 Output, Input, and Variables
2.3 Variable Assignment and
Calculations
2.4 Variable Declarations and
Data Types
2.5 Named Constants
2.6 Hand Tracing a Program
2.7 Documenting a Program
2-2
2-4
2-6
Figure 2.2
Flowchart for the
pay calculating
program
2-7
Checkpoint 2.1
Who is a programmers
customer?
What is a software requirement?
What is an algorithm?
What is pseudocode?
What is a flowchart?
What are each of the following
symbols in a flowchart?
Oval
Parallelogram
Rectangle
9
2-10
2-11
Checkpoint 2.2
What are the three operations that programs typically
perform?
What is a sequence structure?
What is a string? What is a literal?
A string literal is usually enclosed inside a set of what
characters?
What is a variable?
Summarize three common rules for naming
variables?
What variable naming convention do we follow in this
book?
Look at the following pseudocode statement:
Input temperature
What happens when this statement executes?
2-14
2-15
Checkpoint 2.3
What is an assignment statement?
When you assign a value to a
variable, what happens to any
value that is already stored in the
variable?
Summarize the mathematical order
of operations, as it works in most
programming languages.
What is the purpose of the
exponent operator?
What is the purpose of the modulus
operator?
16
2-18
Checkpoint 2.4
What two items do you usually
specify with a variable
declaration?
Does it matter where you write
the variable declarations in a
program?
What is variable initialization?
Do uninitialized variables pose
any danger in a program?
What is an uninitialized variable?
19
2-20
2-21
Checkpoint 2.7
What is external documentation?
What is internal documentation?
What are the two general types
of comments that programmers
write in a programs code?
Describe each.
23