text stringlengths 7 5.36M |
|---|
'3D-Animation nach AugenmaŠ
SCREEN 7
DO
FOR x = 1 TO 4 STEP .2
CIRCLE (100, 100), (x - .2) ^ 3 / 5, 0
CIRCLE (100, 100), x ^ 3 / 5
FOR s = 1 TO 500: NEXT s
NEXT x
CIRCLE (100, 100), (x - .2) ^ 3 / 5, 0
LOOP WHILE INKEY$ = ""
|
1 COMMON A, AL, B, BASEONLY, C, C$, C1, CAT$, CC, CKT$, D, D$, DD, DIA, DIMN$, DMS, E, EO, EX$, F, F$, FD, FF, FQ, FRQ, G$, GO$, I, I$, L, LATLONG, LD, LL, LN, LS, LW, LX, MAX, MENU, MIN, MX, N, NN, NT, OV, P, PI, PROG$, Q, QQ, QU, R, RA, RC, T, T$, U, U$, UH, UL$, V$, VC, W, WHIP, WIRD, WW, X, X$, X1, XS, Z$, ZP, ZS
1... |
' estado de cuenta de clientes con credito
DEFINT A-Z
DECLARE SUB EstadodeCuenta ()
DECLARE SUB Espera ()
DECLARE SUB Box (Row1, Col1, Row2, Col2)
DECLARE SUB Box2 (Row1, Col1, Row2, Col2)
DECLARE SUB Center (row, text$)
DECLARE SUB LeeEstado ()
DECLARE FUNCTION EntraDatoNumero$ (fila%, columna%, largo%, caden$... |
10 FOR I = 1 TO 10
20 PRINT ,I
30 NEXT I
|
10 PRINT CHR$(147);
20 GOSUB 20000:GOSUB 30000
300 XL = -1.2:XU = -1.185: REM XL = -2.000:XU = 0.500
310 YL = -0.195:YU = -0.185 :REM YL = -1.100:YU = 1.100
315 REPS = 255
316 ITERS% = 0
320 WIDTH = 320:HEIGHT = 200
330 XINC = (XU-XL)/WIDTH
340 YINC = (YU-YL)/HEIGHT
400 REM MAIN
410 FOR J = 0 TO HEIGHT - 1
420 FOR I = ... |
10 FOR I = 2 TO 1000
15 K = INT(SQR(I)) + 1
20 FOR J = 2 TO K
30 K1 = I / J
40 K2 = INT(K1)
50 IF K1 = K2 THEN GOTO 80
60 NEXT J
70 PRINT I
80 NEXT I |
PRINT "ciao";
PRINT ""
INPUT "Dimmi la data di nascita"; nascita
IF nascita = 3 THEN
PRINT "giusto";
ELSE nascita = 2
PRINT "sbagliato"
END IF
|
!--------------------------------------------------
!- Friday, May 12, 2017 11:10:37 PM
!- Import of :
!- c:\src\zelch64\bak\emprg.i.prg
!- Commodore 64
!--------------------------------------------------
8000 FORI=0TO9:POKE43+I,PEEK(721+I):NEXT
8010 TX$=CR$+"{f1}INVESTMENT(?) #{ct c}":GOSUB5:GOSUB30:IFI$="?"TH... |
CLS
10 SOUND STICK(1) * 10, 1
GOTO 10
|
0 POKEV,A:A=15-A:GOTO.
0 V=54296:A=15:GOTO.
|
' Major Lab
'
' This lab will calculate the velocity of a ball bearing at the end
' of a wooden ramp. It will also predict the distance at which it will
' land.
CLS
' DATA
CONST PI = 3.1415926#
CONST D2 = .22
CONST LENGTH = 1.215
CONST G = 9.8... |
DO
'c = INP(96)
c = INP(&H60)
PRINT c
IF (c = 30) THEN
PRINT "You pressed A"
END IF
LOOP WHILE c <> 1
|
5 print"{clear}"
10 print tab(10)"telephone directory"
15 restore
20 input "{down}please enter the name";r$
25 print
30 for j=1 to 5
40 read n$,t$
50 if n$=r$ then print n$;"'s number is: ";t$:goto 80
60 if n$ = "end" then print r$;" is not in the list"
70 next j
80 printtab(4)"do you want another number (y/n)?"
90 get... |
'==============================================================================
' Filename: MAX_TORQUES_V***.BAS
' Revisions:
' V100 - Initial release. (Systems Team)
'------------------------------------------------------------------------------
' Abstract:
' This program is for monitoring the torque values of the ser... |
10 BLOAD"wavedrvr.bin",R:CLEAR 200,&HDA00
20 _MBINIT
30 _MWMLOAD("xtdemo_1.mwm")
40 _MBPLAY
50 FORI=0TO50000!:NEXTI:_MBFADE(5)
60 IF PEEK(&HDA00)=255 THEN 60
70 '
80 _MWKLOAD("xtdemo_2.mwk")
90 _MWMLOAD("xtdemo_2.mwm")
100 _MBPLAY
110 FORI=0TO50000!:NEXTI:_MBFADE(5)
120 IF PEEK(&HDA00)=255 THEN 120
130 '
1... |
DECLARE FUNCTION Myrand# (seed!)
DECLARE FUNCTION sortcmp% (i!(), p$(), s$(), pstn!)
DECLARE SUB sort (i!(), p$(), s$(), twc!)
DIM we$(610), wd$(610)
DIM indx1(610), indx2(610)
OPEN "e:\codebook\codebook.csv" FOR INPUT AS 1
OPEN "e:\codebook\codebook.txt" FOR OUTPUT AS 2
CLS
PRINT "Initializing..."
vwl$ = "AEI... |
SCREEN 12
CLS
X = 0
Y = 160
S = .1
DO
LOOP UNTIL X > 640
|
0 rem akk
1 rem written by searinox
2 readFileName$ = "_akk___l1.txt"
3 gosub 7
4 readFileName$ = "_akk___l2.txt"
5 gosub 7
6 goto 16
7 rem subroutine starts here
8 open readFileName$, as #1
9 if eof(1) = -1 then goto 14
10 input# 1, a
11 print a
12 sleep .1
13 goto 9
14 close #1
15 return
16 end
17 |
!--------------------------------------------------
!- Wednesday, May 17, 2017 12:22:15 AM
!- Import of :
!- c:\src\zelch128next\prg.voting booth.prg
!- Commodore 128 BASIC 7/7.1
!--------------------------------------------------
30000 SYS15625:REM ============ VOTING BOOTH MODULE V1.7 =========== 02/10/92 =
3... |
10 A =RND(TIME)*3.14:R=10:S=10:X=50:Y=50:L=10:U=10:W=250:H=212:ST=0.2
20 DIM X1(U-1):DIM X2(U-1):DIM Y1(U-1):DIM Y2(U-1):SCREEN 2
100 LINE (X1(L-1),Y1(L-1))-(X2(L-1),Y2(L-1)),0
110 KR$ = INKEY$ : if KR$="a" THEN A = A- ST: ELSE IF KR$="s" THEN A = A + ST
130 if X>W OR X<0 OR Y<0 OR Y>H THEN A = A+3.14/2 : L=L-1 : if L... |
Operation =1
Option =0
Begin InputTables
Name ="dbo_ProjectComponentStock"
Name ="dbo_ProjectComponentHeader"
End
Begin OutputColumns
Expression ="dbo_ProjectComponentStock.ID"
Expression ="dbo_ProjectComponentStock.ProjectComponentID"
Expression ="dbo_ProjectComponentHeader.ProjectHeaderID"
Ex... |
10 a=0:screen a:gosub1000
20 a=a+2:screen a:gosub1000
30 screen 128:gosub1000
40 screen 2:print"this should error...":screen 1:end
1000 printchr$(147);"press any key!"
1005 geta$:if a$=""then1005
1010 return |
REM @english
REM SPRITE MANAGEMENT MOVING PARALLEL SPRITES IN GAMELOOP
REM
REM This example shows how to move sprites by using the multitasking
REM feature, assigning a movement routine to each sprite, and inside
REM a game loop, to improve performances on VBL constaint systems.
REM
REM @italian
REM GESTIONE DEGLI SPRI... |
5 PRINT TAB(33);"BATTLE"
7 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY"
10 REM -- BATTLE WRITTEN BY RAY WESTERGARD 10/70
20 REM COPYRIGHT 1971 BY THE REGENTS OF THE UNIV. OF CALIF.
30 REM PRODUCED AT THE LAWRENCE HALL OF SCIENCE, BERKELEY
40 REM DIM F(6,6),H(6,6),A(4)<B(4),C(6),L(3)
50 FOR X=1 TO 6
51 FO... |
10 BORDER 0: PAPER 5: CLS
20 FOR X=1 TO 7
30 FOR Y=0 TO 15
40 PRINT AT Y+X-1,15-Y;INK X;"{+7}"
50 PRINT AT Y+X-1,16+Y;INK X;"{+7}"
60 NEXT Y
70 NEXT X |
SUB drawwall (wallchoice)
IF wallchoice = 1 THEN
LINE (1, 2)-(14, 21 * con), 0, BF
PUT (1, 2), wall1
ELSEIF wallchoice = 10 THEN
LINE (30, 30)-((21 * con) - 30, (21 * con) - 30), 0, BF
PUT (30, 30), wall10
ELSEIF wallchoice = 11 THEN
LINE (30, 30)-(40, (21 * con) - 30), 0, BF
PUT (30, ... |
DECLARE SUB sphere ()
DECLARE SUB cylinder ()
DECLARE SUB cone ()
DECLARE SUB prism ()
DECLARE SUB pyramid ()
CONST PI = 3.1459265#
top:
CLS
PRINT "What shape would you like to find its volume? "
PRINT
PRINT " 1) Rectangular Prism"
PRINT " 2) Rectangular Pyramid"
PRINT " 3) Cylinder"
PRINT " 4) Cone"
PRINT... |
DIM fnames(5) AS STRING
DIM x AS INTEGER
DIM y AS INTEGER
DIM fn AS STRING
DIM found AS INTEGER
FOR x = 1 TO 5
DO
found = 0
INPUT "Please enter a first name: ", fn
FOR y = 1 TO 5
IF UCASE$(fn) = UCASE$(fnames(y)) THEN
found = 1
END IF
NEXT y
... |
Operation =1
Option =0
Where ="(((tbl_Locations.UTME_public) Is Null)) OR (((tbl_Locations.UTMN_public) Is Null"
"))"
Begin InputTables
Name ="tbl_Locations"
Name ="tbl_Sites"
Name ="qxsub_Best_coordinates"
Name ="tbl_Target_Coords"
End
Begin OutputColumns
Expression ="tbl_Locations.Location_ID... |
'
' Ninja Man!
'
'
'
' This program was made by Steve Nunnally. Copyright (C) 1997
'All of this code was written by me, Steve Nunnally. DO NOT copy
'this code unless you have my permission! And you MAY NOT change
'the name in this paragraph to your name.
'
DIM SHARED over AS INTEGER
DIM SHARED up AS INTE... |
Attribute VB_Name = "ModGeneral"
'------------------------------------------------------------------------------------------
'esta primera lines corresponde a las variables globales de la empresa en el sistema
Public sysEmpresa As String, sysCodInm As String, sysCodPro As String, sysCodCaja As String
... |
10 INPUT "LINES" ; LINES
100 PRINT
110 NEXT I
20 FOR I=1 TO LINES/2+1
30 FOR J=1 TO(LINES+1)/2-I+1: PRINT" ";: NEXT
40 FOR J=1 TO I*2-1: PRINT"*";: NEXT
50 PRINT
60 NEXT I
70 FOR I=1 TOLIVES/2: REM note misspelled variable is the same
75 REM because variables are unique to only two characters
80 FOR J=1 TO I+... |
10 ' SAVE "MASTER"
20 '*********************************************************************
30 '*
40 '* ○○香料様向け マスターファイル読み込みプログラム
50 '*
60 '* FILE_NAME : MASTER.BAS
70 '* AUTHOR : S.AIZAWA
80 '* DATE : 90/11/22
90 '*********************************************************************
100 D... |
REM $INCLUDE: 'x86.bi'
DECLARE SUB init.VM.desc ()
DECLARE SUB load.CS (sel!, desc AS DESCR, FLAG%)
DECLARE SUB load.SS (sel!, desc AS DESCR, FLAG%)
DECLARE SUB read.descr (sel!, desc AS DESCR, FLAG%)
DECLARE SUB mark.accessed (sel!)
DECLARE SUB exit.task ()
DECLARE SUB REG.STORE (REG.NUM!, NUM#)
DECLARE SUB FL... |
5 'from Lauwerier H., 1991. "Fractals Images of Chaos" Penguin 209p.
10 'Dust Fractal of Three Rotations, Backtracking
20 'Name: DUSTBT
30 SCREEN 12, 0, 0, 0: CLS
40 WINDOW (-.8, -.6)-(1.6, 1.2)
45 COLOR 15: LOCATE 1, 1: PRINT "Dust fractal of three rotations, backtrack method"
50 p = 7: DIM x1(p), y1(p), x2(p... |
1 COMMON A, AL, B, BASEONLY, C, C$, C1, CAT$, CC, CKT$, D, D$, DD, DIA, DIMN$, DMS, E, EO, EX$, F, F$, FD, FF, FQ, FRQ, G$, GO$, I, I$, L, LATLONG, LD, LL, LN, LS, LW, LX, MAX, MENU, MIN, MX, N, NN, NT, OV, P, PI, PROG$, Q, QQ, QU, R, RA, RC, T, T$, U, U$, UH, UL$, V$, VC, W, WHIP, WIRD, WW, X, X$, X1, XS, Z$, ZP, ZS
1... |
Version =20
VersionRequired =20
PublishOption =1
Checksum =-2024515161
Begin Report
LayoutForPrint = NotDefault
Modal = NotDefault
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DateGrouping =1
GrpKeepTogether =1
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =2... |
10 LET Y = 0
20 PRINT Y
30 LET X = 0
40 PRINT X
50 LET X = X + 1
60 IF X < 50 GOTO 40
70 LET Y = Y + 1
80 IF Y < 50 GOTO 20 |
8 REM MINNESOTA EDUCATIONAL COMPUTING CONSORTIUM STAFF
9 REM PROGRAMMING REVISIONS BY DON RAWITSCH - 1975
11 REM CURRENT VERSION - 3/27/75
15 REM **FOR THE MEANING OF THE VARIABLES USED, LIST LINES 4900-4960**
25 PRINT "DO YOU NEED INSTRUCTIONS (YES/NO)";
30 DIM C$[5]
35 INPUT C$
40 IF C$="NO" THEN 40... |
1000 REM ** HEXEN MUESSEN BRENNEN ** CPC VERSION 2021 BY SRS
1001 HE=1:H1=0:H2=1:MA=50:AS=1:H5=1:SJ=0:HEX=1:JU=0
1002 DIM B$(10):DIM A$(1):DIM F$(36):MODE 1
1003 INK 0,0:BORDER 0:INK 1,26:SJ=0
1004 PRINT" IN DER HOELLE DES TEUFELS":PRINT" ?????????????????????????":PRINT" cpc version 08/2021 SRS"
... |
10 DAT$="OUTPUT.TTN"
20 OPEN "O",1,DAT$
30 PRINT#1,"Ausgabe-Datei von TASTEN.BAS"
40 PRINT#1,""
50 KEY OFF
60 B=1:C=0:D=1:E=1
70 CLS
80 GOTO 210
90 ON ERROR GOTO 310
100 A$=INKEY$:IF A$="" THEN 100
110 A=ASC(A$)
120 IF A=8 THEN C=C-2:E=E-2:GOSUB 320:GOTO 190
130 IF A=13 THEN GOSUB 270:GOTO 190
140 IF A=27 ... |
1 %TITLE "Payroll Federal Year To Date"
%SBTTL "PR_RPRT_FED_YTD"
%IDENT "V3.6a Calico"
!
! COPYRIGHT (C) 1988 BY
!
! Computer Management Center, Inc.
! Idaho Falls, Idaho.
!
! This software is furnished under a license and may be used and
! copied only in accordance with terms of such license and with
! the... |
SCREEN 12: CLS
RANDOMIZE TIMER
DIM troufion(52): DIM tank(166)
DIM nul52(52): DIM nulTank(166)
DIM Atom(52)
DIM batPrinc(344): DIM usine(344): DIM camp(344): DIM port(344)
DIM nulBatiment(344)
DIM grilleEnn(27, 19) 'une case a la valeur 0 si elle est vide,
'1 si elle contient u... |
10 A=&HFFBD
11 PRINT"ENTER R,OR G, OR B"
12 INPUT"(R)ED (G)REEN (B)LUE";A$
13 IF A$="R" THEN D=4 : M=32 :L=36
14 IF A$="G" THEN D=2 : M=16 :L=18
15 IF A$="B" THEN D=1 : M=8 :L=9
20 PRINT "DARK" : POKE A,D : GOSUB 1100
30 PRINT "MED" : POKE A,M : GOSUB 1100
40 PRINT "LIGHT" : POKE A,L : GOSUB 1100
50 GOTO 20
1100 ... |
5 PRINT
10 PRINT "A, B, P, R, Y, T";
20 INPUT A, B, P, R, Y, T
21 IF A < 0 THEN 800
22 IF B < 0 THEN 800
23 IF R <= 0 THEN 800
24 IF Y <= 0 THEN 800
25 IF T <= 0 THEN 800
26 IF T = 999 THEN 9999
30 IF A = 999 THEN 100
40 IF B = 999 THEN 200
50 IF P = 999 THEN 300
60 IF Y = 999 THEN 400
70 IF R = 999 THEN 500
80
100 RE... |
10 X$="шорох"
20 PRINTUSING "!аба!";X$,X$
|
10 print chr$(147) : poke 53280,12 : poke 53281,2
20 c=1 : print chr$(5)
30 for k=1 to 20 : for d=1 to 40
40 if c=1 then print "{cm e}"; : goto 60
50 print "{cm r}";
60 c=1-c
70 next d
80 c=1-c
90 next k |
' NFINDX PROGRAM 8/9/2002
' ~~~~~~~~~~~~~~
DIM NFL(1:48,1:16),NAM$(1:16),TM(1:2,1:19),ST(1:2,1:24),T$(1:38),R$(1:24)
DIM RT$(1:19),TOT(1:2)
CLS
DATA "# RUSHES ","YDS RUSH ","# PASSES ","# COMPLT ","YDS PASS ","# SACKS "
DATA "YDS SACK ","# INTS ","YDS INT ","# PUNTS ","YDS PUNT ","... |
1 COMMON A, AL, B, BASEONLY, C, C$, C1, CAT$, CC, CKT$, D, D$, DD, DIA, DIMN$, DMS, E, EO, EX$, F, F$, FD, FF, FQ, FRQ, G$, GO$, I, I$, L, LATLONG, LD, LL, LN, LS, LW, LX, MAX, MENU, MIN, MX, N, NN, NT, OV, P, PI, PROG$, Q, QQ, QU, R, RA, RC, T, T$, U, U$, UH, UL$, V$, VC, W, WHIP, WIRD, WW, X, X$, X1, XS, Z$, ZP, ZS
5... |
1 printchr$(14)chr$(8):poke53280,2:poke53281,0
10 print"{clear}{green}":dima(425)
20 print:print
30 print"{clear}{down}{space*12}treasure hunt.":forhh=1to2500:next
40 print:print
60 deffnr(x)=int(rnd(1)*x)+1
70 print"{clear}{down*2}The MARPLE CAVES,located in marple-town,are said to have 20"
71 print"hidden trea... |
10 Print "Test String"
20 if "bla" then print "if = \"bla\" => Should come here!"
30 print "Post if = \"bla\""
40 if "" then print "if = \"\" => Should NOT come here!"
50 print "Post if =\"\""
60 print
70 Print "Test Numerical"
80 if 1 then print "if = 1 => Should come here!"
90 Print "Post if = 1"
100 if 0 th... |
Version =20
VersionRequired =20
Begin Report
LayoutForPrint = NotDefault
DateGrouping =1
GridY =10
Width =10716
ItemSuffix =84
Left =1380
Top =45
ShortcutMenuBar ="Sports Admin-Print Popup"
Toolbar ="Sports Admin-Print"
RecSrcDt = Begin
0x410a1485eee5e140
... |
CLS
PI=3.14162
PCT=80 'TM(A,16)*100
THETA=35*PI/180
V=80+(PCT-60)/15
FGFP=(17+10*(PCT/100-.6))*(1+PCT/100)
PRINT USING "###.# ###";V,FGFP
FOR FP=10 TO 50 STEP 2
T=((FP+17)*3)/(V*COS(THETA))
HTB=V*T*SIN(THETA)-16.1*T*T
PRINT USING "FP HTB ###.# ###.#";FP,HTB
NEXT
DIST=(V*COS(THETA)*3.12)/3-4
PRINT U... |
100 REM STOCK MARKET SIMULATION -STOCK-
101 REM REVISED 8/18/70 (D. PESSEL, L. BRAUN, C. LOSIK)
102 REM IMP VRBLS: A-MRKT TRND SLP; B5-BRKRGE FEE; C-TTL CSH ASSTS;
103 REM C5-TTL CSH ASSTS (TEMP); C(I)-CHNG IN STK VAL; D-TTL ASSTS;
104 REM E1,E2-LRG CHNG MISC; I-STCK #; I1,I2-STCKS W LRG CHNG;
105 REM N... |
Attribute VB_Name = "FINAN_FI_HW_NELSON_LIBR"
Option Explicit 'Requires that all variables to be declared explicitly.
Option Base 1 'The "Option Base" statement allows to specify 0 or 1 as the
'default first index of arrays.
'****************************************************... |
10 rem ***works to some extent, needs further debugging***
20 print"{clear}":poke 53280,0: poke 53281,0:dim d$(4,400):co=0
30 a$(1)="housekeep1ng":a$(2)="entertainment":a$(3)="rent & rates"
40 a$(8)="income":a$(4) ="clothing":a$(5)="motor1ng":a$(6)="holiday"
50 a$(7)="miscellaneous"
60 print"{clear}{yellow}{down*3}"tab... |
'erzeugt eine datei mit mal und geteilt-aufgaben
'kommazahlen mit 2 dezimalstellen
CLS
RANDOMIZE TIMER
DIM i(60, 3) AS INTEGER
DIM st(2) AS INTEGER
DIM o(60, 3) AS STRING
nl4$ = CHR$(13) + CHR$(10) + CHR$(13) + CHR$(10) + CHR$(13) + CHR$(10) + CHR$(13) + CHR$(10)
FOR x = 1 TO 60
i(x, 0) = INT(RND * 90 + 10)... |
10 'PACO EL HOMBRE. 8BP 2022
12 MEMORY 17499
13 CALL &6B78:|MUSIC
20 DEFINT A-Z:MODE 1:INK 1,24:INK 2,15:INK 3,11: INK 0,0: BORDER 0
21 IF PEEK(&39)=57 THEN cpc=464 ELSE cpc=6128
40 ENT 1,5,-100,3
50 DIM cache(190):x=40
60 FOR y=8 TO 190
70 cache(y)= &A438 + INT(y/8)*20:' direccion de layout. ojo 20/8 = 3 por el redond... |
CLS
WHILE Name$ = ""
PRINT "Welcome to Timothy's program. Please enter your first name below."
INPUT "", Name$
WEND
CLS
WHILE Entry$ <> "exit"
PRINT "Please enter a statement below."
INPUT "", Entry$
FOR a = 1 TO LEN(Entry$)
n$ = MID$(Entry$, a, 1)
IF INSTR("abcdefghijklmnopqrstuvwxyz1234567890 "... |
1 REM GAME OF LIFE
2 REM MODIFIED FOR VT52/VT100 BY BOB SUPNIK
3 REM MODIFIED TO PROMPT FOR MAX GENERATIONS AND TOTAL MAX POPULATION BY DON RUBIN
5 E$=CHR$(27%) \ X2%=23% \ Y2%=80% \ P%=0% \ G=1 \ I9%=0%
10 FOR X%=1% TO X2% \ FOR Y%=1% TO Y2% \ A%(X%,Y%)=0% \ NEXT Y% \ NEXT X%
20 DIM A%(23%,80%),B$(23%)
23 PRINT ... |
* ENCODING=ISO-8859-1
NAME instances/miplib3/mod008.pre.mps.gz Iterations 11 Rows 6 Cols 326
XL C9. R2.
XL C125. R3.
XL C4. R4.
XL C86. R5.
XL C34. R6.
XL C71. R7.
UL C61.
UL C118.
UL C123.
ENDATA
|
'********** PLAY.BAS - just for fun
'Copyright (c) 1990 Ethan Winer
'If you like this music, you need help. No kidding.
DEFINT A-Z
'$INCLUDE: 'PDQDECL.BAS'
CLS
FOR X = 1 TO 10 'fabricate ten PLAY strings
Work$ = ""
FOR Y = 1 TO 10
Length$ = "L" + STR$(PDQRand%(28) + 5) 'make a ran... |
0 DEFINTA-Z:INPUTR:Y=R:L=0:S=R*R:X=0:N=R
1 FORX=1TOR:L=S-X*X
2 IFY*Y>LTHENY=Y-1:GOTO2ELSEN=N+Y+1:NEXT:PRINT4*(N-R)+1
|
10 REM Purpose:
20 REM
100 rem test
110 ' test
120 rem ' test
130 ' rem test
140 print:rem test
150 print:rem ' test
160 ' label1:'test
170 ' label2:'rem test
180 ' label3 : ' test
190 ' label4 : ' rem test
200 rem test : test
210 rem test : ' test
220 ' test : test
230 ' test : rem test
240 ' test : ' test
250 print "... |
100 DIM A(6,6), B(2,3)
120 MAT READ A,B
130 PRINT "EXAMPLE 1"
140 PRINT
150 MAT PRINT A,B
160 READ P, Q
170 MAT READ A(P,Q)
180 PRINT "EXAMPLE 2"
190 PRINT
200 MAT PRINT A;
900 DATA 1,2,3,4,5,6, 1,2,3,4,5,6, 6,5,4,3,2,1, 6,5,4,3,2,1
901 DATA 4,4,4,4,4,4, 5,5,5,5,5,5
910 DATA 1,2,3,4,5,6
920 DATA 3,4
930 DATA 1,2,3,4,5,... |
'******* PROGRAM TETRA2 *******
'* Three Dimensional Stress Analysis *
'* Tetrahedral Elements *
'* T.R.Chandrupatla and A.D.Belegundu *
'*******************************************
DEFINT I-N: CLS : COLOR 1, 3
LOCATE 1, 1: PRINT "3-D TETRAHE... |
Version =20
VersionRequired =20
Begin Form
AutoCenter = NotDefault
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DefaultView =2
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width =10230
DatasheetFontHeight =11
ItemSuffix =14
Left =40... |
Version =21
VersionRequired =20
Begin Form
RecordSelectors = NotDefault
NavigationButtons = NotDefault
DividingLines = NotDefault
DefaultView =0
ScrollBars =0
TabularFamily =124
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
DatasheetFontHeight =9
... |
0 REM <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H> <CTRL-M><CTRL-M>PROGRAM DESCRIPTIONS MENU<CTRL-M><CTRL-M>PROGRAM BY GREG TANG<CTRL-M><CTRL-M>
100 DIM A$(26,10): DIM M$(26): GOSUB 2000: HOME : TEXT : POKE -16368,0: INVERSE
110 VTAB 1: HTAB 4: PRI... |
DIM number AS DOUBLE
DIM factor AS LONG
DIM highfac AS LONG
number = 600851475143
factor = 2
DO WHILE factor ^ 2 <= number
IF number MOD factor = 0 THEN
number = number / factor
highfac = factor
ELSE
IF factor = 2 THEN
factor = 3
ELSE factor = factor + 2
END ... |
10 rem ** cops and robbers **
20 g=1024:h=55296:c=160:b=219:s=54272:lm=1e6
30 forj=0to24:pokes+j,0:next
40 pokes+24,15:pokes+5,18:pokes+6,242:poke53280,5:poke53281,8:m=0:mc=0:pokes+3,1
50 input"{clear}{white}{down*2}{right*2}speed (1 to 10)";a$
60 l=11-val(a$):ifl<1orl>10then50
70 print"{clear}":poke53281,7
80 forj=0to... |
10 for i=33 to 255
20 print i;chr$(i)
30 next i
|
10 rem ********************************
20 rem *a single data set of up to 31 *
25 rem *values all the numbers *
30 rem *are displayed by this routine *
35 rem *as a barchart. *
40 rem *machine code routines used *
45 rem * are: *
50 rem * sys(29024) - draw border *
... |
100 REM PINBALL
110 DIM T(7)
120 GOSUB 1100
130 PRINT:LET G=0
140 LET X=1:LET Y=D/2:GOSUB 1700
150 PRINT"{space*6}pinball"
160 LET T=2:GOSUB 1400:GOSUB 2800
170 LET X=8:LET Y=2:GOSUB 1700:PRINT"+"
180 LET X=7:LET Y=4:GOSUB 1700:PRINT"+ +"
190 LET X=6:LET Y=6:GOSUB 1700:PRINT"+ + +"
200 LET X=5:LET Y=8:GOSUB 1700:PRINT"... |
10 print "Ejercicio 1"
20 input "Ingrese el número: "; n
30 if n = 0 then goto 100
40 if (int(n/2)*2) = n then print "Número PAR" else print "Número IMPAR"
50 goto 20
100 print "Hasta pronto!" |
Attribute VB_Name = "MATRIX_RC_ADD_LIBR"
Option Explicit 'Requires that all variables to be declared explicitly.
Option Base 1 'The "Option Base" statement allows to specify 0 or 1 as the
'default first index of arrays.
'*******************************************************************... |
Version =20
VersionRequired =20
Begin Form
RecordSelectors = NotDefault
NavigationButtons = NotDefault
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
TabularCharSet =204
PictureAlignment =2
DatasheetGridlinesBehavior =3
Cycle =1
GridX =24
GridY =24... |
Attribute VB_Name = "modOpenGL"
'------------------------------------------------------------------------------
'
' modOpenGL.bas - Module containing OpenGL-related functions
'
' Written by Peter de Tagyos ( pdetagyos@home.com )
'
' Translated from the code found on NeHe's OpenGL website.
' ( http://nehe.gamedev.net... |
10 FOR I=8573 TO 8576
20 PRINT PEEK(I)
30 NEXT I
35 PRINT
40 FOR X=1 TO 1000
50 NEXT X
60 GOTO 10
|
1 %TITLE "Function to Round Numbers"
%SBTTL "FUNC_ROUNDPAYROLL"
%IDENT "V3.6a Calico"
FUNCTION REAL FUNC_ROUNDPAYROLL(XNUM, METHOD$)
!
! COPYRIGHT (C) 2000 BY
! Software Solutions, Inc.
!
! This software is furnished under a license and may be used and
! copied only in accordance with terms of such license a... |
005 REM 99 Bottles of Beer in GW-BASIC
010 REM by Stefan Scheler <sts[at]synflood[dot]de> - Ilmenau, Germany in June 2005
015 REM GW-BASIC (named after Greg Whitten, an early Microsoft employee and is
020 REM known more affectionately as 'gee-whiz') was a dialect of BASIC developed
025 REM by Microsoft, originally fo... |
10 rem sdf
|
10REM27/03/2020-10h27
20DEFFNALEA(X)=INT(RND(PEEK(78)+PEEK(79)*256)*X+1)
30GOTO370
50TM%=TM%+1.
60IFTM%=10THENTM%=0:TH%=TH%+1
70RETURN
80CX%=PEEK(36):CY%=PEEK(37):HTAB1:VTAB1:?"HOUR:";TH%;" DAY:";TD%;" MONTH:";TM%;" YEAR:";TY%;" ":HTABCX%:VTABCY%
90RETURN
110RETURN
130RETURN
150IFPEEK(-16384)<127THENGOTO330
160KH%... |
10 :REM'DISCONE - Discone Multiband Antenna - 03 NOV 96 rev. 30 JUL 97
20 IF EX$=""THEN EX$="EXIT"
30 CLS:KEY OFF
40 COLOR 7,0,1
50 F$="#####.###"
60 U$="#####.#"
70 V$="=####.##"
80 X$=STRING$(80,32)
90 PI=3.1415929794311523!
100 :REM'
110 :REM'.....start
120 CLS
130 COLOR 15,2
140 PRINT " DISCONE MULTIBAND ANTENNA";T... |
REM Processing file, computes scores, and creates an
REM at-a-glance score chart for a set of battles.
REM Written by: Steve Bailey (sgb@zed-inst.demon.co.uk)
REM Modified by John K Wilkinson (jwilkinson@mail.utexas.edu), 3-20-96.
OPEN "koth_res.tmp" FOR INPUT AS #1
LINE INPUT #1, i$
OPEN i$ + ".log" FOR OUTPU... |
DECLARE SUB REALFT (DATQ!(), N!, ISIGN!)
SUB SINFT (Y(), N)
THETA# = 3.141592653589793# / CDBL(N)
WR# = 1#
WI# = 0#
WPR# = -2# * SIN(.5# * THETA#) ^ 2
WPI# = SIN(THETA#)
Y(1) = 0!
M = N / 2
FOR J = 1 TO M
WTEMP# = WR#
WR# = WR# * WPR# - WI# * WPI# + WR#
WI# = WI# * WPR# + WTEMP# * WPI# + WI#
Y1 =... |
# (for Emacs) -*- indented-text -*-
# this file `demo.bas' demonstrates the features of zmakebas
# (basically just the escape sequences), and gives you an example of
# what the input can look like if you use all the bells and whistles. :-)
#
# See `demolbl.bas' for a label-using version.
# Machine code test. The code... |
0 CLEAR1:DIMC(6,3,7):OPEN"I",#-1,"T2":FORS=0TO6:FORO=0TO3:FORT=0TO7:INPUT#-1,C(S,O,T):NEXT:NEXT:NEXT:CLOSE#-1:POKE65495,0:GOTO30
1 SET(X+C(S,O,0),Y+C(S,O,1),D):SET(X+C(S,O,2),Y+C(S,O,3),D):SET(X+C(S,O,4),Y+C(S,O,5),D):SET(X+C(S,O,6),Y+C(S,O,7),D):RETURN
2 RESET(X+C(S,O,0),Y+C(S,O,1)):RESET(X+C(S,O,2),Y+C(S,O,3)):RESET... |
#COMPILE EXE
#DIM ALL
GLOBAL g_hBinFile AS LONG
GLOBAL g_sBinFile AS STRING
GLOBAL g_hOutFile AS LONG
GLOBAL g_sOutFile AS STRING
GLOBAL g_ramSize AS LONG
GLOBAL g_fileBuf AS STRING*4096
GLOBAL g_usage AS LONG
%FILEIS_BIN = 0
%FILEIS_HEX = 1
... |
DEFINT A-Z
DECLARE SUB LOGS ()
DECLARE SUB cargo ()
DECLARE SUB savesub ()
DECLARE SUB padd ()
DECLARE SUB TESTCHR (file$, SCE)
DECLARE SUB INTRO ()
DECLARE SUB newgame ()
DECLARE SUB new ()
DECLARE SUB load ()
DECLARE SUB mainbridge ()
DECLARE SUB sickbay ()
DECLARE SUB transporter ()
DECLARE SUB mainengine ()
DECLARE... |
10 FOR A= 1 TO 1000
15 P=1
20 FOR B = 1 TO A
30 IF A MOD B = 0 AND B <> 1 AND B <> A THEN P=0
35 IF P= 0 THEN GOTO 60
40 NEXT B
50 IF P=1 THEN PRINT A;
60 NEXT A
70 END
|
1 COMMON A, AL, B, BASEONLY, C, C$, C1, CAT$, CC, CKT$, D, D$, DD, DIA, DIMN$, DMS, E, EO, EX$, F, F$, FD, FF, FQ, FRQ, G$, GO$, I, I$, L, LATLONG, LD, LL, LN, LS, LW, LX, MAX, MENU, MIN, MX, N, NN, NT, OV, P, PI, PROG$, Q, QQ, QU, R, RA, RC, T, T$, U, U$, UH, UL$, V$, VC, W, WHIP, WIRD, WW, X, X$, X1, XS, Z$, ZP, ZS
5... |
1 ' 33000-35999
1 ' =================================
1 ' === COLLISION SYSTEM
1 ' =================================
1 '
1 ' INIT: 33000
1 ' UPDATE: 33100
1 ' COLLISION: 33200
1 '
1 ' -------------------------------
1 ' INIT
33000 RETURN
1 '
1 ' -------------------------------
1 ' UPDATE
33100 f=@m(0)
331... |
10 :REM'STUBANT - Stub Match for Antennas - 19 FEB 95 rev.25 OCT 2000
20 IF EX$=""THEN EX$="EXIT" :REM'if ex$ not chained from previous program
30 IF PROG$=""THEN GO$=EX$ :ELSE GO$=PROG$
40 COMMON EX$,PROG$
50 CLS:KEY OFF:COLOR 7,0,1
60 UL$=STRING$(80,205)
70 U1$="#####.###"
80 U2$="##.###"
90 U3$="####.##"
100 PI... |
10 CLS
20 DEF FNMX(R)=R+31:DEF FNMY(R)=R+7
30 DEF FNX(R)=(R+31)*9-9:DEF FNY(R)=(R+7)*14-14
40 KEY OFF:ON KEY(11) GOSUB 550:ON KEY(12) GOSUB 560 :ON KEY(13) GOSUB 570:ON KEY(14) GOSUB 580
50 DIM P%(16),M%(16),G%(16),O%(16),L(17,12),E(17,12)
60 LINE(270,84)-(432,266),,B
70 DRAW"... |
' visualiza facturas de compra
DEFINT A-Z
DECLARE SUB Espera ()
DECLARE SUB LeeEstado ()
DECLARE SUB Center (row, text$)
DECLARE SUB Box (Row1%, Col1%, Row2%, Col%)
DECLARE SUB BorraBox (Row1%, Col1%, Row2%, Col%)
DECLARE SUB VerFactCompras ()
DECLARE SUB Termometro (va%, total%, edo%, text$, fila%, columna%)
... |
1 %TITLE "Requistion Detail"
%SBTTL "WP_RPRT_REQDETAIL"
%IDENT "V3.6a Calico"
!
! COPYRIGHT (C) 1991 BY
!
! Computer Management Center, Inc.
! Idaho Falls, Idaho.
!
! This software is furnished under a license and may be used and
! copied only in accordance with terms of such license and with
! the inclusio... |
940 REM The IBM Personal Computer Space
950 REM Version 1.10 (C)Copyright IBM Corp 1981, 1982
960 REM Licensed Material - Program Property of IBM
970 REM Author - R. Heiney & M. Hallerman
975 DEF SEG
980 SAMPLES$="NO"
990 GOTO 1010
1000 SAMPLES$="YES"
1010 KEY OFF:SCREEN 0,1:COLOR 15,0,0:WIDTH 40:CLS:LOCATE 5,1... |
1 %TITLE "Check Reconciliation Statement Report"
%SBTTL "CK_RPRT_STATEMENT"
%IDENT "V3.6a Calico"
!
! COPYRIGHT (C) 1990 BY
!
! Computer Management Center, Inc.
! Idaho Falls, Idaho.
!
! This software is furnished under a license and may be used and
! copied only in accordance with terms of such license and ... |
T$="B.GHAA(0)": REM GMST of 0000 utc Calculator. Based on
REM 1984 Astronomical Almanac Pages B6 & S13.
REM
REM Version 1.1 Last modified 1985 May 08 by JRM
REM
REM (C)1991 J R Miller G3RUH
REM
REM GMST =24110.54841 + TU*(8640184.812866+TU*(0.093104+TU*(-6.2E-6)))
REM (seconds)... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.