Computer Science For IGCSE & O Level CourseBook

Page 7

We are working with Cambridge Assessment International Education towards endorsement of these titles. Contents

8 Programming 196

9 Databases 295 Database structure 297 SQL 302 SELECT . . . FROM 302 SELECT . . . FROM . . . WHERE 305 Order by 311 SUM 312 COUNT 313

D

R

9.1 9.2 9.3 9.4 9.5 9.6 9.7

10.1 10.2 10.3 10.4 10.5 10.6 10.7 10.8 10.9 10.10 10.11

324

The role of logic gates The NOT logic gate The AND logic gate The OR logic gate The NAND logic gate The NOR logic gate The XOR logic gate Logic expressions Representing truth tables Representing logic expressions Representing problem statements

FT

Programming concepts 198 Data types 202 Input and output 205 Arithmetic operators 209 Sequence 214 Selection 216 Iteration 231 Totalling 241 Counting 243 String manipulation 245 Nested statements 251 Subroutines 255 Library routines 265 Maintainable programs 267 Arrays 270 File handling 286

326 326 327 329 330 331 333 337 339 344 347

11 Programming scenarios practice 353 11.1 11.2

A

8.1 8.2 8.3 8.4 8.5 8.6 8.7 8.8 8.9 8.10 8.11 8.12 8.13 8.14 8.15 8.16

10 Boolean logic

11.3 11.4

Programming scenario Method 1: Identifying the inputs, processes and outputs Writing the code Method 2: Practically carrying out the program and identifying the stages

Microsoft case studies

355 355 357 365

379

Glossary 384 Index 392 Acknowledgements 398 Coursebook answers

v 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.
Computer Science For IGCSE & O Level CourseBook by Cambridge International Education - Issuu