0% found this document useful (0 votes)
6 views3 pages

As Topic 9 Revision Questions Scheme

The document provides 5 questions asking to write algorithms in pseudocode or a chosen programming language to: 1) Draw regular polygons of any size, 2) Check if a number is between 10-20 or over 100, 3) Set a password by inputting the same word twice and allowing 3 attempts, 4) Identify values stored in variables after assignment statements, 5) Extend a flowchart to allow multiple marks to be input.

Uploaded by

Cliford Odhiambo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views3 pages

As Topic 9 Revision Questions Scheme

The document provides 5 questions asking to write algorithms in pseudocode or a chosen programming language to: 1) Draw regular polygons of any size, 2) Check if a number is between 10-20 or over 100, 3) Set a password by inputting the same word twice and allowing 3 attempts, 4) Identify values stored in variables after assignment statements, 5) Extend a flowchart to allow multiple marks to be input.

Uploaded by

Cliford Odhiambo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

1.Write an algorithm for drawing regular polygons of any size.

Write down your solution as an


algorithm in structured English.
ANSWER

2. Identify the values stored in the variables when the assignment statements in the code below
have all been completed. The function ASC returns the ASCII value of a character.

ANSWER
3. In the programming language you have chosen to use, write a short program to input MyValue
and YourValue and complete the single choice with an alternative IF statement for the
Pseudocode below. Note any differences in the command words you need to use and the
construction of your programming statements compared with the pseudocode.

4. In pseudocode, write statements to check that a number input is between 10 and 20 or over
100. Make use of brackets to ensure that the order of the comparisons is clear.
ANSWER

5. In pseudocode, write an algorithm to set a password for a user when they have to input the
same word twice. Then allow the user three attempts to enter the correct password. Complete an
identifier table for your algorithm.
6. The flowchart below has been extended to allow more than one mark to be input.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy