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
Students' Guide to
Program
Design
Calculate-Set-of-Change
Read Pence-amount
Change =
50p-coins
Change =
20p-coins
Change =
10p-coins
Change =
5p-coins
=
Change =
2p-coins
=
Change =
1p-coins
=
100 - Pence-amount
= Change/50
Change - (50p-coins
= Change/20
Change - (20p-coins
= Change/10
Change - (10p-coins
= Change/5
Change - (5p-coins
= Change/2
Change - (2p-coins *
=Change
50)
*20)
*10)
5)
2)
Print Set-of-Change |
3.3 Checking the solution algorithm
After a solution algorithm has been constructed, the algorithm must be
tested for correctness. This is necessary, because most major logic
errors occur during the development of the algorithm ...
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