クイックアプリ検索 »   新着 | 値下げ | 無料 | 高評価 | 新着オススメ! | キニナル! | 新着動画 | iPad新着 | iPad値下げ | iPadオススメ!
APPLICATION INFO - iPhoneアプリの詳細情報
TOP > 教育 > BASIC - Programming Language ! プログラミング言語 !

BASIC - Programming Language ! プログラミング言語 !

¥400
  • このエントリーをはてなブックマークに追加
  • Share on Tumblr
  • Check
BASIC: 古き良き時代を再び感じる ! 懐かしい !
10 INPUT A
20 B = SIN(A)
30 PRINT "ANSWER: ", B
40 END

BASIC ユーザーガイド:

• PRINT

10 PRINT "HELLO WORLD !"
20 END


• INPUT

10 INPUT “A=”, A
20 PRINT A
30 END


• IF...THEN...

Number Comparison:

10 INPUT A
20 IF A>90 THEN B=“A”
30 PRINT B
40 END

Conditional Operators:
> greater than
< less than
>= greater than or equal to
=> equal to or greater than
<= less than or equal to
=< equal to or less than
= equal to
== equal to
<> not equal to
!= not equal to

THEN can be followed by GOTO, GOSUB, INPUT, PRINT.

String Comparison:

10 INPUT A
20 IF A=“TOM” THEN PRINT “BOY”
30 END

Conditional Operators:

= is
== is
<> is not
!= is not


• FOR...NEXT...

10 FOR I=1 TO 4 STEP 2
20 PRINT “HELLO”, I
30 NEXT I
40 END

STEP specifies the counter increment for each loop. If STEP doesn’t exit, the default increment is 1.

FOR...NEXT... loop can be nested.

10 FOR I=1 TO 5
20 FOR J=1 TO 4
30 PRINT I, J
40 NEXT J
50 NEXT I
60 END


• GOTO

10 ...
20 ...
30 ...
40 GOTO 10
50 ...


• GOSUB

10 PRINT “H”
20 GOSUB 100
30 PRINT “L”
40 END
100 PRINT “A”
110 RETURN


• SOUND

10 SOUND C, M, 0.5

The line 10 plays Middle C piano note for 0.5 seconds.

Note: C, C#, D, D#, E, F, F#, G, G#, A, A#, B
Pitch Range: L (low), M (middle), H (high)
Lasting Time: specifies how long a note lasts.

C, D, E, F, G, A, B can also be labeled as 1, 2, 3, 4, 5, 6, 7. (C# as 1#).


• TEXT

10 TEXT “HELLO”, x, y, size

(x,y): position of the string “HELLO”.


• CIRCLE

10 CIRCLE x, y, radius

(x,y): the center of the circle.


• RECTANGLE

10 RECT x, y, width, height

(x,y): top-left point of the rectangle.


• LINE

10 LINE x1, y1, x2, y2

(x1,y1): the starting point of the line.
(x2,y2): the ending point of the line.


• POINT

10 POINT x, y

(x,y): the position of the point.


• CLR: clear the edit window.
• CLS: clear the graph window.


• DELAY

10 DELAY 0.5

0.5:lasting time in seconds

This function is used to suspend execution of a program for a particular time.


• CURVE

10 CURVE x, y, radius, 0, PI

0: starting angle
PI: ending angle

The curve draws clockwise with center (x,y).


• Mathematical Functions:

SIN(X), COS(X), TAN(X), COT(X),
ASIN(X), ACOS(X), ATAN(X),
SINH(X), COSH(X), TANH(X),
ASINH(X), ACOSH(X), ATANH(X).

SQR(X): square root of x.
ABS(X): absolute value of x.
FCT(X): x factorial.
LOG(X): natural logarithm of x.
LOG10(X): base-10 logarithm of x.
LOG2(X) :base-2 logarithm of x.
EXP(X): base-e exponential of x.
ERF(X): the error function of x.
ERFC(X): the complementary error function of x.
ROUND(X) :integral nearest to x.
CEIL(X): the smallest integral that is not less than x.
FLOOR(X): the largest integral that is not greater than x.
TGAMMA(X): the gamma function of x.
LGAMMA(X): the natural logarithm of the absolute value of the gamma function of x.


• Reserved Variables:

INKEY : once a key is pressed, the value of INKEY changes.
RND : a random number.
PI : π


• Some Tips:

1. Undo & Redo typing on iPhone with a shake.
2. Copy an Emoji or some character from other places (like Notes), then paste them on the edit window.
3. Exponentiation is expressed as X^Y.
このアプリはiPhone、iPadの両方に対応しています。
カテゴリー
教育
リリース
2016/9/15
バージョン
1.2
言語
サイズ
22.6 MB
条件
このバージョンの新機能
Fixed iPad Interface Orientation Problems.
スクリーンショット - iPhone | iPad
  • https://is2-ssl.mzstatic.com/image/thumb/Purple71/v4/35/a8/57/35a85731-1d42-feba-4dc4-e08b8b03cda0/pr_source.png/392x696bb.png
  • https://is4-ssl.mzstatic.com/image/thumb/Purple62/v4/64/ad/8d/64ad8d87-f04a-d3d9-a79c-4a2780e6229c/pr_source.png/392x696bb.png
  • https://is4-ssl.mzstatic.com/image/thumb/Purple71/v4/2f/4b/f0/2f4bf0d5-9034-67cb-89ab-6e48ac724633/pr_source.png/392x696bb.png
  • https://is5-ssl.mzstatic.com/image/thumb/Purple71/v4/05/26/ea/0526ea4b-41f1-95fa-6ddd-41727beeb6b3/pr_source.png/392x696bb.png
  • https://is2-ssl.mzstatic.com/image/thumb/Purple71/v4/55/80/7c/55807cd6-3c18-32e7-3883-f63e9c343e84/pr_source.png/392x696bb.png
スクリーンショット - iPhone | iPad
  • https://is5-ssl.mzstatic.com/image/thumb/Purple71/v4/b9/04/ca/b904cacd-17cc-d5b5-33ed-7aed65e1e4a6/mzl.xtkbwvjj.png/576x768bb.png
  • https://is2-ssl.mzstatic.com/image/thumb/Purple71/v4/74/5f/0c/745f0c8c-807b-7279-5fa9-1da5948ed434/mzl.pnxlxurl.png/576x768bb.png
  • https://is3-ssl.mzstatic.com/image/thumb/Purple62/v4/67/bb/7f/67bb7fbc-d2d9-ff31-ca74-94e8af34cded/mzl.ldtqognl.png/576x768bb.png
  • https://is5-ssl.mzstatic.com/image/thumb/Purple71/v4/68/39/f1/6839f1aa-88d7-dee6-593a-6157a64bbaf0/mzl.lowosnmt.png/576x768bb.png
  • https://is3-ssl.mzstatic.com/image/thumb/Purple71/v4/ef/db/19/efdb19fe-bd34-0359-60c4-2865638259fc/mzl.hwcrdvrh.png/576x768bb.png



このアプリのYoutube動画がある場合はURLを送信してください。詳細 »