Next:
Control Structures
Up:
Structured Programming in Pascal
Previous:
Standard Input and Standard
Contents
Problem Solving with Numbers
Subsections
Control Structures
Conditions
Comparisons
Compound Logical Operators
Negation
Conjunction
Disjunction
Control Constructs
Conditional Statement
Homework Assignment 1
Prechecking Iteration
Postchecking Iteration
The Block Statement
Nested Statements
Conditional Statements
Examples of Problem Solving
Error Checking
First Cut
Refinement
Integer
Representation
Binary Numbers
Revisit Base-10 (Decimal) Numbers
Breaking Down a Binary Number
Converting from Decimal to Binary
Addition
Multiplication
Negative Values and Negation
Range of Values
Assignment (200 pts, due one week from assignment date)
What Does the Program Do?
The Approach
Hints
Trinary Conversion Example
How to Turn it In?
Real Numbers
What is
Real
?
The Binary Point
Exponent
Actual Implementation
Real Vs. Integer
Efficiency
Range of Magnitude
Fractions
Operators for
Real
Versus
Integer
Assignment
Getting a Random Number
Hint
How to submit?
Tak Auyeung 2003-12-03