-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhelpMenu.txt
More file actions
64 lines (47 loc) · 1.35 KB
/
helpMenu.txt
File metadata and controls
64 lines (47 loc) · 1.35 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
Key Words:
Go To:
Move to a different class or method
"Go To <Class or method name> stop"
Exit:
Exit a control structure
"exit stop"
Undo:
Undo the previous statement
"undo stop"
Clear:
Clear the current input
"Clear stop"
Stop Recording:
Say "stop" two consecutive times to stop recording. The first "stop" can be from a previous command.
Make New Classes:
"New <visibility> class <className> stop"
Eg: "New public class circle stop"
Make New Class Variables:
"New <visibility> variable <type> <variableName> stop"
Eg: "new private variable Integer radius"
Make New Methods:
"New <visibility> method <methodName> returns <returnType> stop"
Eg: "new public method get circumference returns double stop"
Make New Method Variables:
"New variable <type> <variableName> stop"
Eg: "new variable double pi stop"
OR:
"New variable <type> <variableName> equals <value> stop"
Eg: "new variable double pi equals three point one four stop"
Make New if Statements:
"If <condition> stop"
Eg: "if radius less than four stop"
Add an else if:
"Else if <condition> stop"
Eg: "else if radius less than ten stop"
Add an else:
"else stop"
Make a while loop:
"While <condition> stop"
Eg: "while radius equals seven stop"
Make a return Statement:
"return <returnValue> stop"
Make a print Statement:
"Print <returnValue> stop"
Makea comment:
"comment <statement> stop"