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

Page 41

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). 2  Programming constructs

CONTINUED Solution

LE

START

INPUT Max Score INPUT Candidate Score

Percent ← Candidate Score / Max Score * 100

Percent >= 80

Invite to Interview

M

Send Reject Letter

TRUE

P

FALSE

STOP

Flowchart 2.2: Flowchart to output the results of an entrance examination

A

NOTE: Observe the use of the diamond symbol to indicate a decision. The criteria are Boolean expressions that will either be TRUE or FALSE. It is crucial that the TRUE/ FALSE indicators are added to show how the execution of the code will flow.

S

PRACTICE TASK 2.2

How would Flowchart 2.2 need to change if the university introduced a process where candidates who achieved more than 90% in the entrance examination are automatically offered a place at the university without the need of an interview? Redraw the flowchart to include this option.

29 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