0% found this document useful (0 votes)
9 views1 page

Lecture05 Worksheet

Uploaded by

Lo Wing Pun
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views1 page

Lecture05 Worksheet

Uploaded by

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

MTech–Module 2: Lecture 05

Calculator Programming

1. Input 2 numbers and return the larger one:


CASIO fx-3650P / fx-50FH
? → A : ? → B: B > A ⇒ Goto 0 : B Goto 1 : Lbl 0 : A Lbl 1

Input (A ?) Input (B ?) Display


1. 10 20
2. 20 5
3. 30 30

Conclusion: The display is the (larger/smaller) of the inputs

2. Fibonacci sequence:
T (1) = 1 , T (2) = 1 , T (3) = 2 , T (4) = 3 , T (5) = 5 , T (6) = 8 ,
T (7) = ____ , T (8) = ____ , T (9) = ____ , T (10) = ____

In general, T (n + 2) = ____ + ____

? → X : 1 → A: 1 → B:
Lbl 0 : A + B → C : A → B : C → A : X − 1 → X :
X > 2 ⇒ Goto 0 : C

Input (X ?) Display
1. 4
2. 8
3. 12

If X = 4
X A B C
Step 1: 4 1 1 2
Step 2: 3
Step 3: 2
Display

You might also like