N5+Structure+Diagrams

media type="custom" key="29271339"


 * Questions**

1. Below is a structure diagram for some programs. In your own words, describe what each program does: (a)

(b)

(c)

(d)

2. Below is the structure diagram for a program (a) In your own words, describe what the program does (b) What should go in place of the 4 question marks?



3. The structure diagram below shows the design of a program which rolls and totals 2 dice. Copy and complete the diagram filling in the ?'s

4. A game displays a random number (1-3) and asks the user to guess which number it is, and then say if they are correct or not. Draw a structure diagram for this program

5. A program should ask the user to enter their first name and then display how many characters are in their name. It will use the pre-defined function LEN which returns the number of characters in a name. Draw a structure diagram for this program

6. Design a structure diagram for a program which asks the user to enter two numbers and then displays the largest number.