# Computing

## Understanding—BASIC Programming for Remedial Students

Your feedback is important to us!

After viewing our curriculum units, please take a few minutes to help us understand how the units, which were created by public school teachers, may be useful to others.

*
MULTIPLICATION PROGRAMS
*

### program 1

10 REM TO FIND THE SQUARE OF A NUMBER20 PRINT “WHAT NUMBER DO YOU WANT TO SQUARE?”

30 INPUT R

40 LET S = R * R

50 PRINT R,S

60 GO TO 20

70 END

Results:

WHAT NUMBER DO YOU WANT TO SQUARE?

6 | 36 |

### Explanation—program 1.

- Line 30 The student can type in any number that they want to be squared. They don’t have to know the answer.

### program 2

10 REM STUDENT INPUTS MULT FACTS AND ANSWERS15 PRINT “ TYPE IN TWO MULT FACTS SEPARATED BY COMMAS”

20 INPUT A,B

30 LET C = A * B

40 PRINT “WHAT IS THE PRODUCT?”

50 INPUT C1

60 IF C1 = C THEN 90

70 PRINT “TRY AGAIN”

75 PRINT “YOUR NUMBERS ARE”;

76 PRINT A;B

8O GO TO 40

90 PRINT “VERY GOOD”

100 GO TO 15

110 END

Results:

TYPE IN TWO MULT FACTS SEPARATED BY COMMAS

3,5

WHAT IS THE PRODUCT?

14

TRY AGAIN

YOUR NUMBERS ARE 3 | 5 |

VERY GOOD

### Explanation—program 2

- Line 20 The student types in both the multiplication facts and 50 the answer.
- Line 30 This line could easily be changed to test addition or any other skill.
- Line 60 If the answer is incorrect the student gets to try again until the correct answer is given. Each time he tries the numbers are given to him again in case they are not remembered. If the answer is correct he can precede to the next problem of his choice.
- Line 75 A semicolon at the end of a statement will cause the next “PRINT” statement to appear on the same line.