Pseudo-code coding: Exercise #10 → Edition
Statement #10: The program must read words until it finds the word "stop", provided that the word "attention" occurs at least 1 time in the list. Report the positions of the first and last "attention" words read in the list.
Compose and insert the variables you need
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

DASHBOARD

SHOE

Elementary instructions

Constants

True
False

Mathematical operators

Boolean operators

AND
OR
NOT

Comparators and parentheses

(
)

Control structures

IF
THEN
ELSE
END IF
REPEAT
UNTIL
WHILE
DO
END WHILE
FOR
DO
END FOR



Pseudo-code coding: Exercise #10 → Execution
Statement #10: The program must read words until it finds the word "stop", provided that the word "attention" occurs at least 1 time in the list. Report the positions of the first and last "attention" words read in the list.
  Workspace →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

Dashboard

Test result...

Test result...


© Rupert Meurice de Dormale 2024 (update of the 1995 version)

All rights reserved. Copying in whole or in part prohibited without written permission of the author.

adresse