Skip to Main Content
Students' Guide to Program Design
book

Students' Guide to Program Design

by Lesley Anne Robertson
May 2014
Intermediate to advanced content levelIntermediate to advanced
188 pages
7h 8m
English
Newnes
Content preview from Students' Guide to Program Design
Pseudocode
algorithms
sequence,
selection,
repetition
a Defining diagram
INPUT
Header record
Header-usage
Customer records:
customer-number
name
customer-usage
PROCESSING
Print Heading
Read Header Record
For each customer:
read record
calculate amount-owing
increment Total-usage
print customer details
Compare Total-usage
to
Header-usage
Print message
OUTPUT
Heading
Customer Details
containing:
customer-number
name
customer-usage
amount-owing
Error message
b Control structures required
1 A
DOWHILE
loop to control the repetition.
2 An
IF
statement to calculate amount-owing.
3 An accumulator for Total-usage.
4 An
IF
statement to compare Header-usag ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Reinventing the Organization for GenAI and LLMs

Reinventing the Organization for GenAI and LLMs

Ethan Mollick

Publisher Resources

ISBN: 9781483141442