Cambridge IGCSE & O Level Computer Science Programming Book for Java Sample

Page 7

We are working with Cambridge Assessment International Education towards endorsement of this title. Any references or material related to answers, grades, papers or examinations are based on the opinion of the author(s). Contents

9 Designing algorithms The context for the design process Top-down design Structure diagrams

10 Checking inputs 10.1 10.2 10.3 10.4 10.5

Validation and verification 142 Categories of validation 142 Programming validation 144 Verification 151 Check digit 152

11 Testing

156 157

12.1 12.2 12.3

Suggestions for tackling the question 169 Coding a solution 172 Final thoughts 173

13 Examination practice

178

Appendix – Language-specific reference and OOP

189

Glossary

194

P

Categories of error The testing framework

12 Programming scenario task

Solutions

S

A

M

11.1 11.2

133 135 135

Debugging 159 Using a debugger 160 Using a trace table in a dry-run 164

LE

9.1 9.2 9.3

11.3 11.4 11.5

vii Original material © Cambridge University Press 2021. This material is not final and is subject to further changes prior to publication.


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.