BASIC - Programming Language 4+

베이식 프로그래밍 언‪어‬

俊 姜

iPad용으로 디자인됨

    • 2.7 • 7개의 평가
    • US$2.99

스크린샷

설명

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.

새로운 기능

버전 1.6

Built with iOS SDK 18.

평가 및 리뷰

2.7/5
7개의 평가

7개의 평가

NJdave22 ,

Disappointed!!

Does not work on iPad running iPadOS 14.5.1. Please fix this. This could be a good app.

개발자 답변 ,

Please update to the latest version.

tttttttttttttxt ,

okay

this is the best BASIC emulator i have seen in app store. but severely limited because of tiny text window. does allow interactive input. nice sound function. Please enlarge the size of the text window in the next upgrade, especially for ipad where we have a huge screen compared to the iphone. Consider using the native ios keyboard and allowing us to hide the graphics windows. Also how do i see the full list of programs i have saved if i save more than 4 programs?

meelnica ,

Doesn’t show properly on iPad Pro 10.5”

The program screen doesn’t show properly at the left side of the screen. It is truncated.

개발자 답변 ,

Please update to the latest version.

앱이 수집하는 개인정보

俊 姜 개발자가 아래 설명된 데이터 처리 방식이 앱의 개인정보 처리방침에 포함되어 있을 수 있다고 표시했습니다. 자세한 내용은 개발자의 개인정보 처리방침을 참조하십시오.

데이터가 수집되지 않음

개발자가 이 앱에서 데이터를 수집하지 않습니다.

개인정보 처리방침은 사용하는 기능이나 사용자의 나이 등에 따라 달라질 수 있습니다. 더 알아보기

지원

  • 가족 공유

    가족 공유를 활성화하면 최대 6명의 가족 구성원이 이 앱을 사용할 수 있습니다.

이 개발자의 앱 더 보기

춤 추는 나비
라이프스타일
3D Astronomy : 태양계 모형
참고
30권 영어 철학책
교육
크메르어 (캄보디아어) - Khmer Language
교육
세계시간 - World Clock
유틸리티
불교의 혜택!
라이프스타일

좋아할 만한 다른 항목

Hand BASIC - CBM Flavor
교육
Learn Fortran Programming
교육
Turing Machine Simulator
교육
BASIC Programming Compiler
교육
Tutorial for C
참고
Draw & Calc
그래픽 및 디자인