EasyManua.ls Logo

Sharp EL-9650 - Random Substitution of Numbers

Sharp EL-9650
373 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
256
CHAPTER 12
Execution:
Execute the program. After pressing
Ï Ï
A
, select the program
(CONVERT) and press
®
.
When the program starts executing, a request will be made for the method of calcula-
tion, followed by a request for input of the temperature. When the temperature has
been input, the program will display the results.
<Example>
Conversion of 35°C to °F will appear as shown to the
right.
(2) Random substitution of numbers
Create a program that fills the matrix M × N with random numbers from 0 to 9.
The file name is “MATFILL”.
Input:
The program command input method (
Ï
) was explained in the previous
example so only items requiring special caution will be explained here.
Program Key operation
MATFILL
1. Input N
2. Input M
3. {N, M} dim(mat A)
Ï
ÅN,ÅMÏ
Î
MATRIX
C01
MATRIX
A1)
4. 1 I
5. Label FILL I
6. 1 J
7. Label FILL J
8.
round (random, 3)
≥B2≥C1,
3
MATRIX
A
matA (I, J)
1(ÅI,ÅJ)
9. J + 1
J
* Processing and display of the rounding of random numbers to
3 decimal places.
10. If J M Goto FILL J
11. I + 1 I
12. If I N Goto FILL I
13. Print matA
14. End
,
,
,
EL-9650-(12)En (239-258) 8/1/00, 9:31 AM256

Table of Contents

Other manuals for Sharp EL-9650

Related product manuals