Professional Documents
Culture Documents
Examples
2.1
Generalized Pseudocode
2.2
The Triangle Problem
2.3
The program (ver 1, first test)
2.4
Problem reports arising from the first test
• Design Errors:
– No Program Name
– No onscreen instructions
– How do you stop the program?
• Coding Errors:
– Layout (the result ‘Equilateral’ is not well explained)
• Submit one Problem Report for each error, why?
– Problems grouped together might not be solved at the same
time
– The unfixed ones will be lost
2.5
Flowchart for the traditional triangle program
implementation
2.6
The program (ver 2)
• Problem Statement
2.9
Commission Problem Implementation
2.10
The SATM System
• Problem Statement
– SATM customers can select any of three transaction
types: deposits, withdrawals, and balance inquiries
– Transactions can be done on checking or saving
accounts
– Every customer has a card and with a PAN (Personal
Account Number)
– Every customer has a PIN
– Customer has 3 chances to enter the PIN correctly
– (Refer to text for detailed problem statement)
2.11
The SATM System Cont’d
2.12
The Currency Converter
2.13
Saturn Windshield Wiper Controller
2.14