Cambridge IGCSE & O Level Computer Science Programming Book for Microsoft Visual Basic Sample

Page 38

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). CAMBRIDGE IGCSE™ & O LEVEL COMPUTER SCIENCE: PROGRAMMING BOOK

CONTINUED

START

Obtain Journey Distance

P

Calculate Journey Time

LE

INPUT Start Airport INPUT End Airport

M

INPUT Start Time

Arrival Time ← Start Time + Journey Time

STOP

S

A

OUTPUT Arrival Time

Flowchart 2.1: Flowchart for calculating arrival time for an aeroplane journey

This task follows a simple linear process, so the flowchart that represents the process also follows a single path. NOTE: Observe the use of the different symbols to indicate the inputs / outputs from the processes that need to be completed. When you come to code programs these will help to identify the need to obtain user input.

26 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.
Cambridge IGCSE & O Level Computer Science Programming Book for Microsoft Visual Basic Sample by Cambridge International Education - Issuu