Skip to main content

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

Page 43

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

PRACTICE TASK 2.3 How would Flowchart 2.3 need to be changed if the requirements for the acceptance of the new password were altered to include the following? •

The password must contain more than six characters.

The password must contain at least one symbol.

LE

Redraw the flowchart to include this option. You only have to include (Stage 1) general descriptions for this flowchart. You do not yet know how to program the checks required, so a general description of each check will be acceptable.

SKILLS FOCUS 2.1 COMMON FLOWCHART ERRORS

P

A system is required that will accept two numbers. The numbers must be larger than 10 and less than 20. Numbers outside of this range will be rejected and the user asked to re-input values. Once both numbers are within the range the system will output the result of adding the two numbers together. Consider the attempt at creating a flowchart for the task shown in Flowchart 2.4.

M

START

INPUT Numbers

OUTPUT "Not in range re-enter"

Calculate Result

INPUT Numbers

S

A

Check in Range 10 to 20

OUTPUT

STOP Flowchart 2.4: Flowchart attempt

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