Hướng dẫn sử dụng Crocodile ICT trong giải các bài toán tin học 8

14 58 0
Hướng dẫn sử dụng Crocodile ICT trong giải các bài toán tin học 8

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Inverse hyperbolic cosine acosh( x ) Returns an angle in degrees corresponding to the hyperbolic cosine value x ... it is equivalent to mod( x,1 ) )[r]

(1)

ỨNG DỤNG CROCODILE

(2)

1 GIỚI THIỆU CROCODILE ICT

• Crocodile ICT (Crocodile Information and

Communication Technologies) phần mềm do Crocodile Clips Ltd sản xuất vào năm 1993-2005, với phiên Crocodile ICT 410 (501, 504, 509 vào 605).

(3)

2 GIỚI THIỆU CÁC CÔNG CỤ TRONG CROCODILE ICT 605

Nút Ý nghĩa Lệnh pascal

Start Bắt đầu chương trình Begin

On buttom press Khi nút liên kết ấn

On event Khi kiện tác động

On receive Khi nhận “lệnh”

Repeat every Lệnh lặp sau khoảng thời gian

Stop Kết thúc chương trình End

Funtion Bắt đầu chương trình con Funcion

Return Kết thúc chương trình con End

(4)

Nút Ý nghĩa Lệnh pascal

Set variable Gán giá trị cho đối tượng :=

Increment variable Tăng đơn vị cho biến Inc

Random Tạo số ngẫu nhiên [0 1] Random

Delay Tạo khoảng dừng chạy Delay

Send Tạo “lệnh”

Receive Nhận “lệnh”

(5)

Nút Ý nghĩa Lệnh pascal

(6)

Nút Ý nghĩa Lệnh pascal

Call action Gọi hành động ( có đối tượng minh họa có)

Get property Nhận “thuộc tính”: thường dung để nhận giá trị thuộc tính đối tượng liên kết

Set property Gán giá trị/ thuộc tính cho đối tượng liên kết

(7)

Nút Ý nghĩa Lệnh pascal

Monitor box Dùng để theo dõi thay đổi trị trong lưu đồ

Scene (gobal) variable

(8)

Thường dung liên kết với Get

(9)

Các hàm Crocodile ICT

CÚ PHÁP MÔ TẢ

sqrt(x) căn bậc II X

fact(x) X!

pow(x,y) XY

mod(x,y) phần dư phép chia x cho y

floor(x) lấy phần nguyên x

round(x) Làm tròn LÊN của x

ln(x) Log số e x

(10)

Name Syntax Description

Sine sin(x) Returns the sine value of an angle x(in degrees) Cosine cos(x) Returns the cosine value of an angle x(in degrees) Tangent tan(x) Returns the tangent value of an angle x(in degrees)

Inverse sine asin(x) Returns an angle between -90° and 90° corresponding to the sine value x Inverse cosine acos(x) Returns an angle between 0° and 180° corresponding to the cosine value x Inverse tangent atan(x) Returns an angle between -90° and 90° corresponding to the tangent value x Secant sec(x) Returns the secant value of an angle x (in degrees)

Cotangent cot(x) Returns the cotangent value of an angle x (in degrees) Cosecant csc(x) Returns the cosecant value of an angle x (in degrees)

Inverse secant asec(x) Returns an angle in degrees corresponding to the secant value x Inverse cotangent acot(x) Returns an angle in degrees corresponding to the cotangent value x Inverse cosecant acsc(x) Returns an angle in degrees corresponding to the cosecant value x Hyperbolic tangent tanh(x) Returns the hyperbolic tangent value of an angle x(in degrees) Hyperbolic sine sinh(x) Returns the hyperbolic sine value of an angle x(in degrees) Hyperbolic cosine cosh(x) Returns the hyperbolic cosine value of an angle x(in degrees)

(11)

Name Syntax Description

Square root sqrt(x) Returns the positive square root of x Factorial fact(x) Returns the value of x * (x-1)*(x-2)*…*1 Raise to power pow(x,y) Raises x to the power of y (xy)

Modulo mod(a,b) Divides a by b and returns the remainder

Random rand() Returns a random (decimal) number in the range -

Exponent exp(x) Raises e to the power of x Absolute value abs(x) Returns the absolute value of x

Floor value floor(x) Returns the value of x rounded down to the nearest integer

Ceiling value ceil(x) Returns the value of x rounded up to the nearest integer

Round round(x) Rounds x to the nearest integer and returns the integer

Fractional value frac(x) Returns the fractional part of x (i.e it is equivalent to mod(x,1) )

Logarithm log(x) Returns the log (to base 10) of x Natural Logarithm ln(x) Returns the log to base e of x

Bit bit(x,y) Returns the Boolean value of the yth bit of the binary form of x.

(12)

3 ỨNG DỤNG VÀO VẼ LƯU ĐỒ (SƠ ĐỒ KHỐI) GIẢI MỘT SỐ BÀI TOÁN

1. Giải phương trình ax + b = 0.

2. Giải phương trình bậc II: ax2 + bx + c = 0

3. Nhập vào n số a1, a2, …,an Xuất số có giá trị lớn nhất

(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 bước.

- Ở chỗ rẽ nhánh chương trình cần đánh dấu cho học sinh thấy

a, b = ?

a =

b = x = -b/a

Xuất x

Vô nghiệm Tùy ý (VSN)

KT S

Đ

Đ

(14)

Ngày đăng: 06/02/2021, 10:32

Từ khóa liên quan

Tài liệu cùng người dùng

Tài liệu liên quan