<span class='text_page_counter'>(1)</span><div class='page_container' data-page=1>
ỨNG DỤNG CROCODILE
</div>
<span class='text_page_counter'>(2)</span><div class='page_container' data-page=2>
1. GIỚI THIỆU CROCODILE ICT
•
Crocodile
ICT
(Crocodile
<b>I</b>
nformation
and
<b>C</b>
ommunication
<b>T</b>
echnologies) là phần mềm do
Crocodile Clips Ltd sản xuất vào năm 1993-2005,
với phiên bản đầu tiên là Crocodile ICT 410 (501,
504, 509 vào 605).
</div>
<span class='text_page_counter'>(3)</span><div class='page_container' data-page=3>
<b>2. GIỚI THIỆU CÁC CÔNG CỤ TRONG CROCODILE ICT 605</b>
<b>Nút</b>
<b>Ý nghĩa</b>
<b>Lệnh pascal</b>
Start
Bắt đầu của một chương trình
Begin
On buttom press
Khi nút liên kết được ấn
On event
Khi sự kiện được tác động
On receive
Khi nhận được “lệnh”
Repeat every
Lệnh được lặp sau 1 khoảng thời gian
Stop
Kết thúc của một chương trình
End
Funtion
Bắt đầu của một chương trình con
Funcion
Return
Kết thúc của một chương trình con
End
</div>
<span class='text_page_counter'>(4)</span><div class='page_container' data-page=4>
<b>Nút</b>
<b>Ý nghĩa</b>
<b>Lệnh pascal</b>
Set variable
Gán giá trị cho 1 đối tượng
:=
Increment variable Tăng 1 đơn vị cho biến
Inc
Random
Tạo 1 số ngẫu nhiên trong [0..1]
Random
Delay
Tạo 1 khoảng dừng khi chạy
Delay
Send
Tạo một “lệnh”
Receive
Nhận một “lệnh”
</div>
<span class='text_page_counter'>(5)</span><div class='page_container' data-page=5>
<b>Nút</b>
<b>Ý nghĩa</b>
<b>Lệnh pascal</b>
</div>
<span class='text_page_counter'>(6)</span><div class='page_container' data-page=6>
<b>Nút</b>
<b>Ý nghĩa</b>
<b>Lệnh pascal</b>
Call action
Gọi một hành động ( chỉ có những đối
tượng minh họa mới có)
Get property
Nhận “thuộc tính”: thường dung để nhận
giá trị hoặc các thuộc tính của đối tượng
liên kết
Set property
Gán giá trị/ thuộc tính cho một đối tượng
liên kết
</div>
<span class='text_page_counter'>(7)</span><div class='page_container' data-page=7>
<b>Nút</b>
<b>Ý nghĩa</b>
<b>Lệnh pascal</b>
Monitor box
Dùng để theo dõi sự thay đổi của các trị
trong lưu đồ
Scene (gobal)
variable
</div>
<span class='text_page_counter'>(8)</span><div class='page_container' data-page=8>
Thường dung
liên kết với Get
</div>
<span class='text_page_counter'>(9)</span><div class='page_container' data-page=9>
Các hàm trong Crocodile ICT
<b>CÚ PHÁP</b>
<b>MÔ TẢ</b>
sqrt(x)
căn bậc II của X
fact(x)
X!
pow(x,y)
X
Y
mod(x,y)
phần dư của phép chia x cho y
floor(x)
lấy phần nguyên của x
round(x)
Làm tròn
LÊN
của x
ln(x)
Log cơ số e của x
</div>
<span class='text_page_counter'>(10)</span><div class='page_container' data-page=10>
<b>Name</b> <b>Syntax</b> <b>Description</b>
Sine sin(<i>x</i>) Returns the sine value of an angle <i>x</i>(in degrees).
Cosine cos(<i>x</i>) Returns the cosine value of an angle <i>x</i>(in degrees).
Tangent tan(<i>x</i>) Returns the tangent value of an angle <i>x</i>(in degrees).
Inverse sine asin(<i>x</i>) Returns an angle between -90° and 90° corresponding to the sine value <i>x</i>.
Inverse cosine acos(<i>x</i>) Returns an angle between 0° and 180° corresponding to the cosine value <i>x</i>.
Inverse tangent atan(<i>x</i>) Returns an angle between -90° and 90° corresponding to the tangent value <i>x</i>.
Secant sec(<i>x</i>) Returns the secant value of an angle <i>x</i> (in degrees).
Cotangent cot(<i>x</i>) Returns the cotangent value of an angle <i>x</i> (in degrees).
Cosecant csc(<i>x</i>) Returns the cosecant value of an angle <i>x</i> (in degrees).
Inverse secant asec(<i>x</i>) Returns an angle in degrees corresponding to the secant value <i>x</i>.
Inverse cotangent acot(<i>x</i>) Returns an angle in degrees corresponding to the cotangent value <i>x</i>.
Inverse cosecant acsc(<i>x</i>) Returns an angle in degrees corresponding to the cosecant value <i>x</i>.
Hyperbolic tangent tanh(<i>x</i>) Returns the hyperbolic tangent value of an angle <i>x</i>(in degrees).
Hyperbolic sine sinh(<i>x</i>) Returns the hyperbolic sine value of an angle <i>x</i>(in degrees).
Hyperbolic cosine cosh(<i>x</i>) Returns the hyperbolic cosine value of an angle <i>x</i>(in degrees).
</div>
<span class='text_page_counter'>(11)</span><div class='page_container' data-page=11>
<b>Name</b> <b>Syntax</b> <b>Description</b>
Square root sqrt(<i>x</i>) Returns the positive square root of x
Factorial fact(<i>x</i>) Returns the value of x * (x-1)*(x-2)*…*1
Raise to power pow(<i>x,y</i>) Raises x to the power of y (xy<sub>)</sub>
Modulo mod(<i>a,b</i>) Divides a by b and returns the remainder
Random rand() Returns a random (decimal) number in the range 0 - 1
Exponent exp(<i>x</i>) Raises e to the power of x
Absolute value abs(<i>x</i>) Returns the absolute value of x
Floor value floor(<i>x</i>) Returns the value of x rounded down to the nearest integer
Ceiling value ceil(<i>x</i>) Returns the value of x rounded up to the nearest integer
Round round(<i>x</i>) Rounds x to the nearest integer and returns the integer.
Fractional value frac(<i>x</i>) Returns the fractional part of x (i.e. it is equivalent to mod(<i>x,1</i>) )
Logarithm log(<i>x</i>) Returns the log (to base 10) of x
Natural Logarithm ln(<i>x</i>) Returns the log to base e of x
Bit bit(x,y) Returns the Boolean value of the yth <sub>bit of the binary form of x.</sub>
</div>
<span class='text_page_counter'>(12)</span><div class='page_container' data-page=12>
3. ỨNG DỤNG VÀO VẼ LƯU ĐỒ (SƠ ĐỒ KHỐI) GIẢI MỘT SỐ BÀI TỐN
1.
Giải phương trình ax + b = 0.
2.
Giải phương trình bậc II: ax
2
+ bx + c = 0
3.
Nhập vào n số a
<sub>1</sub>
, a
<sub>2</sub>
, …,a
<sub>n</sub>
. Xuất ra số có giá trị lớn nhất
</div>
<span class='text_page_counter'>(13)</span><div class='page_container' data-page=13>
Sơ đồ khối phương trình ax + b = 0
- Sơ đồ khối theo sách giáo khoa
- Khi chạy chương trình để kiểm tra, tốn
nhiều cơng sức để giải thích giá trị của
từng biến ở mỗi bước.
- Ở mỗi chỗ rẽ nhánh của chương trình
cần được đánh dấu cho học sinh thấy
BĐ
a, b = ?
a = 0
b = 0
x = -b/a
Xuất x
Vô nghiệm Tùy ý (VSN)
KT
S
Đ
Đ
</div>
<span class='text_page_counter'>(14)</span><div class='page_container' data-page=14></div>
<!--links-->