r/qbasic • • Jul 05 '20

Ever wondered what the ASCII code of the key your pressing is?

2 Upvotes
DO
key$ = INKEY$
LOCATE 2, 2
IF key$ <> "" THEN a = ASC(key$)
A$ = STR$(a)
PRINT "ASCII CODE: " + A$ + "   "
LOOP

QBASIC sometimes amuses me.


r/qbasic • • Jan 19 '26

Karma City - Programmed in QB64

Post image
10 Upvotes

r/qbasic • • Dec 22 '24

Report Card Maker

3 Upvotes

It is the most useful QBASIC program for teachers.

Run it to make Your Report Card under 12 subjects.

'''''

Cls

Print "------------------------Fill up-------------------------------------------------"

Input "Full Name"; n$

Input "Roll number"; r$

Input "Class"; c$

Input "Section"; s$

Input "Number of subjects(Max limit-12)"; sn

If sn = 1 Then

Input "Marks obtained in the subject(s)"; m1

ElseIf sn = 2 Then

Input "Marks obtained in subject(s)"; m1, m2

ElseIf sn = 3 Then

Input "Marks obtained in the subject(s)"; m1, m2, m3

ElseIf sn = 4 Then

Input "Marks obtained in the subject(s)"; m1, m2, m3, m4

ElseIf sn = 5 Then

Input "Marks obtained in the subject(s)"; m1, m2, m3, m4, m5

ElseIf sn = 6 Then

Input "Marks obtained in the subject(s)"; m1, m2, m3, m4, m5, m6

ElseIf sn = 7 Then

Input "Marks obtained in the subject(s)"; m1, m2, m3, m4, m5, m6, m7

ElseIf sn = 8 Then

Input "Marks obtained in the subject(s)"; m1, m2, m3, m4, m5, m6, m7, m8

ElseIf sn = 9 Then

Input "Marks obtained in the subject(s)"; m1, m2, m3, m4, m5, m6, m7, m8, m9

ElseIf sn = 10 Then

Input "Marks obtained in the subject(s)"; m1, m2, m3, m4, m5, m6, m7, m8, m9, m10

ElseIf sn = 11 Then

Input "Marks obtained in the subject(s)"; m1, m2, m3, m4, m5, m6, m7, m8, m9, m10, m11

Else

Input "Marks obtained in the subject(s)"; m1, m2, m3, m4, m5, m6, m7, m8, m9, m10, m11, m12

End If

Input "Total marks in each subject"; t

Input "Number of days present"; p

Input "Number of working days"; c

Cls

Print "---------------------------Result-----------------------------------------------"

If sn = 1 Then

p1 = (m1 / t) * 100

ElseIf sn = 2 Then

p1 = (m1 / t) * 100

p2 = (m2 / t) * 100

ElseIf sn = 3 Then

p1 = (m1 / t) * 100

p2 = (m2 / t) * 100

p3 = (m3 / t) * 100

ElseIf sn = 4 Then

p1 = (m1 / t) * 100

p2 = (m2 / t) * 100

p3 = (m3 / t) * 100

p4 = (m4 / t) * 100

ElseIf sn = 5 Then

p1 = (m1 / t) * 100

p2 = (m2 / t) * 100

p3 = (m3 / t) * 100

p4 = (m4 / t) * 100

p5 = (m5 / t) * 100

ElseIf sn = 6 Then

p1 = (m1 / t) * 100

p2 = (m2 / t) * 100

p3 = (m3 / t) * 100

p4 = (m4 / t) * 100

p5 = (m5 / t) * 100

p6 = (m6 / t) * 100

ElseIf sn = 7 Then

p1 = (m1 / t) * 100

p2 = (m2 / t) * 100

p3 = (m3 / t) * 100

p4 = (m4 / t) * 100

p5 = (m5 / t) * 100

p6 = (m6 / t) * 100

p7 = (m7 / t) * 100

ElseIf sn = 8 Then

p1 = (m1 / t) * 100

p2 = (m2 / t) * 100

p3 = (m3 / t) * 100

p4 = (m4 / t) * 100

p5 = (m5 / t) * 100

p6 = (m6 / t) * 100

p7 = (m7 / t) * 100

p8 = (m8 / t) * 100

ElseIf sn = 9 Then

p1 = (m1 / t) * 100

p2 = (m2 / t) * 100

p3 = (m3 / t) * 100

p4 = (m4 / t) * 100

p5 = (m5 / t) * 100

p6 = (m6 / t) * 100

p7 = (m7 / t) * 100

p8 = (m8 / t) * 100

p9 = (m9 / t) * 100

ElseIf sn = 10 Then

p1 = (m1 / t) * 100

p2 = (m2 / t) * 100

p3 = (m3 / t) * 100

p4 = (m4 / t) * 100

p5 = (m5 / t) * 100

p6 = (m6 / t) * 100

p7 = (m7 / t) * 100

p8 = (m8 / t) * 100

p9 = (m9 / t) * 100

p10 = (m10 / t) * 100

ElseIf sn = 11 Then

p1 = (m1 / t) * 100

p2 = (m2 / t) * 100

p3 = (m3 / t) * 100

p4 = (m4 / t) * 100

p5 = (m5 / t) * 100

p6 = (m6 / t) * 100

p7 = (m7 / t) * 100

p8 = (m8 / t) * 100

p9 = (m9 / t) * 100

p10 = (m10 / t) * 100

p11 = (m11 / t) * 100

Else

p1 = (m1 / t) * 100

p2 = (m2 / t) * 100

p3 = (m3 / t) * 100

p4 = (m4 / t) * 100

p5 = (m5 / t) * 100

p6 = (m6 / t) * 100

p7 = (m7 / t) * 100

p8 = (m8 / t) * 100

p9 = (m9 / t) * 100

p10 = (m10 / t) * 100

p11 = (m11 / t) * 100

p12 = (m12 / t) * 100

End If

ab = c - p

pat = (p / c) * 100

If sn = 12 Then

sp = (p1 + p2 + p3 + p4 + p5 + p6 + p7 + p8 + p9 + p10 + p11 + p12) / 12

ElseIf sn = 11 Then

sp = (p1 + p2 + p3 + p4 + p5 + p6 + p7 + p8 + p9 + p10 + p11) / 11

ElseIf sn = 10 Then

sp = (p1 + p2 + p3 + p4 + p5 + p6 + p7 + p8 + p9 + p10) / 10

ElseIf sn = 9 Then

sp = (p1 + p2 + p3 + p4 + p5 + p6 + p7 + p8 + p9) / 9

ElseIf sn = 8 Then

sp = (p1 + p2 + p3 + p4 + p5 + p6 + p7 + p8) / 8

ElseIf sn = 7 Then

sp = (p1 + p2 + p3 + p4 + p5 + p6 + p7) / 7

ElseIf sn = 6 Then

sp = (p1 + p2 + p3 + p4 + p5 + p6) / 6

ElseIf sn = 5 Then

sp = (p1 + p2 + p3 + p4 + p5) / 5

ElseIf sn = 4 Then

sp = (p1 + p2 + p3 + p4) / 4

ElseIf sn = 3 Then

sp = (p1 + p2 + p3) / 3

ElseIf sn = 2 Then

sp = (p1 + p2) / 2

Else

sp = p1 / 1

End If

Print "Name-"; n$

Print "Class="; c$; s$

Print "Roll number="; r$

Print "Attendance rate="; pat

Print "Days present="; p

Print "Days absent="; ab

Print "--Marks--"

If sn = 12 Then

Print "Subject 1="; m1; "Percent="; p1; "%"

Print "Subject 2="; m2; "Percent="; p2; "%"

Print "Subject 3="; m3; "Percent="; p3; "%"

Print "Subject 4="; m4; "percent="; p4; "%"

Print "Subject 5="; m5; "Percent="; p5; "%"

Print "Subject 6="; m6; "Percent="; p6; "%"

Print "Subject 7="; m7; "Percent="; p7; "%"

Print "Subject 8="; m8; "Percent="; p8; "%"

Print "Subject 9="; m9; "Percent="; p9; "%"

Print "Subject 10="; m10; "Percent="; p10; "%"

Print "Subject 11="; m11; "Percent="; p11; "%"

Print "Subject 12="; m12; "Percent="; p12; "%"

ElseIf sn = 11 Then

Print "Subject 1="; m1; "Percent="; p1; "%"

Print "Subject 2="; m2; "Percent="; p2; "%"

Print "Subject 3="; m3; "Percent="; p3; "%"

Print "Subject 4="; m4; "percent="; p4; "%"

Print "Subject 5="; m5; "Percent="; p5; "%"

Print "Subject 6="; m6; "Percent="; p6; "%"

Print "Subject 7="; m7; "Percent="; p7; "%"

Print "Subject 8="; m8; "Percent="; p8; "%"

Print "Subject 9="; m9; "Percent="; p9; "%"

Print "Subject 10="; m10; "Percent="; p10; "%"

Print "Subject 11="; m11; "Percent="; p11; "%"

ElseIf sn = 10 Then

Print "Subject 1="; m1; "Percent="; p1; "%"

Print "Subject 2="; m2; "Percent="; p2; "%"

Print "Subject 3="; m3; "Percent="; p3; "%"

Print "Subject 4="; m4; "percent="; p4; "%"

Print "Subject 5="; m5; "Percent="; p5; "%"

Print "Subject 6="; m6; "Percent="; p6; "%"

Print "Subject 7="; m7; "Percent="; p7; "%"

Print "Subject 8="; m8; "Percent="; p8; "%"

Print "Subject 9="; m9; "Percent="; p9; "%"

Print "Subject 10="; m10; "Percent="; p10; "%"

ElseIf sn = 9 Then

Print "Subject 1="; m1; "Percent="; p1; "%"

Print "Subject 2="; m2; "Percent="; p2; "%"

Print "Subject 3="; m3; "Percent="; p3; "%"

Print "Subject 4="; m4; "percent="; p4; "%"

Print "Subject 5="; m5; "Percent="; p5; "%"

Print "Subject 6="; m6; "Percent="; p6; "%"

Print "Subject 7="; m7; "Percent="; p7; "%"

Print "Subject 8="; m8; "Percent="; p8; "%"

Print "Subject 9="; m9; "Percent="; p9; "%"

ElseIf sn = 8 Then

Print "Subject 1="; m1; "Percent="; p1; "%"

Print "Subject 2="; m2; "Percent="; p2; "%"

Print "Subject 3="; m3; "Percent="; p3; "%"

Print "Subject 4="; m4; "percent="; p4; "%"

Print "Subject 5="; m5; "Percent="; p5; "%"

Print "Subject 6="; m6; "Percent="; p6; "%"

Print "Subject 7="; m7; "Percent="; p7; "%"

Print "Subject 8="; m8; "Percent="; p8; "%"

ElseIf sn = 7 Then

Print "Subject 1="; m1; "Percent="; p1; "%"

Print "Subject 2="; m2; "Percent="; p2; "%"

Print "Subject 3="; m3; "Percent="; p3; "%"

Print "Subject 4="; m4; "percent="; p4; "%"

Print "Subject 5="; m5; "Percent="; p5; "%"

Print "Subject 6="; m6; "Percent="; p6; "%"

Print "Subject 7="; m7; "Percent="; p7; "%"

ElseIf sn = 6 Then

Print "Subject 1="; m1; "Percent="; p1; "%"

Print "Subject 2="; m2; "Percent="; p2; "%"

Print "Subject 3="; m3; "Percent="; p3; "%"

Print "Subject 4="; m4; "percent="; p4; "%"

Print "Subject 5="; m5; "Percent="; p5; "%"

Print "Subject 6="; m6; "Percent="; p6; "%"

ElseIf sn = 5 Then

Print "Subject 1="; m1; "Percent="; p1; "%"

Print "Subject 2="; m2; "Percent="; p2; "%"

Print "Subject 3="; m3; "Percent="; p3; "%"

Print "Subject 4="; m4; "percent="; p4; "%"

Print "Subject 5="; m5; "Percent="; p5; "%"

ElseIf sn = 4 Then

Print "Subject 1="; m1; "Percent="; p1; "%"

Print "Subject 2="; m2; "Percent="; p2; "%"

Print "Subject 3="; m3; "Percent="; p3; "%"

Print "Subject 4="; m4; "percent="; p4; "%"

ElseIf sn = 3 Then

Print "Subject 1="; m1; "Percent="; p1; "%"

Print "Subject 2="; m2; "Percent="; p2; "%"

Print "Subject 3="; m3; "Percent="; p3; "%"

ElseIf sn = 2 Then

Print "Subject 1="; m1; "Percent="; p1; "%"

Print "Subject 2="; m2; "Percent="; p2; "%"

Else

Print "Subject 1="; m1; "Percent="; p1; "%"

End If

Print "--Total Marks Percent--"

Print "Percent="; sp; "%"

Print "--Remarks--"

If sp >= 0 And sp < 20 Then

Print "Need to improve yourselves and study hard"

ElseIf sp >= 20 And sp < 40 Then

Print "Study hard"

ElseIf sp >= 40 And sp < 60 Then

Print "Good. Just a little improvement is required"

ElseIf sp >= 60 And sp < 80 Then

Print "Well done Keep it up"

ElseIf sp >= 80 And sp <= 100 Then

Print "Perfect! Nothing can stop you"

Print "--------------------------------------------------------------------"

End If

End

'''''


r/qbasic • • Dec 20 '23

Introducing FBD, the first FTP-Network based on Undertale (I think..)

3 Upvotes

Here! I've just finished coding FBD, the first FTP-Network based on Undertale. An FTP-Network is a NET in which we use FTP to communicate together, sending and downloading files.

It's completely OPEN-SOURCE, check-it out! https://github.com/EvrestRGB/FBD

NOTE: When you post on the FTP server, please sign by your name or nickname, or add in the file's metadata. But, of course, you can be anonym.


r/qbasic • • Jun 08 '16

"vote up if" is violation of intergalactic law. Monthly Payments

3 Upvotes

REM ********************************************

&nbsp

REM MONTHLY PAYMENTS

&nbsp

REM by PcCodex June 05, 2016

&nbsp

REM

&nbsp

REM Tracking Monthly Payments

&nbsp

REM

&nbsp

REM ********************************************

&nbsp

SCREEN 9: WIDTH 80: CR$ = CHR$(13) + CHR$(10)

&nbsp

Title$ = "Tracking Monthly Payments": Ctr = 25

&nbsp

MX = 6: SP$ = "$$##,######.##": RANDOMIZE TIMER

&nbsp

DIM M$(12), N$(MX), W(MX), D$(MX)

&nbsp

BL$ = SPACE$(80)

&nbsp

N$(1) = "Business Name:": N$(2) = "Contact Ph. #:"

&nbsp

N$(3) = "Account #:"

&nbsp

N$(4) = "Repeat Payment Date:"

&nbsp

N$(5) = "Payment Amt."

&nbsp

N$(6) = "Car Payment,Rent,Loan etc.:"

&nbsp

FOR Gal = 1 TO 6: W(Gal) = LEN(N$(Gal)): NEXT Gal

&nbsp

M$(1) = "January": M$(2) = "February"

&nbsp

M$(3) = "March": M$(4) = "April": M$(5) = "May"

&nbsp

M$(6) = "June": M$(7) = "July": M$(8) = "August"

&nbsp

M$(9) = "September": M$(10) = "October"

&nbsp

M$(11) = "November": M$(12) = "December"

&nbsp

MT = VAL(DATE$): DY$ = MID$(DATE$, 4, 2)

&nbsp

Y$ = RIGHT$(DATE$, 4)

&nbsp

TD$ = M$(MT) + " " + DY$ + ", " + Y$

&nbsp

BALCONY:

&nbsp

CLS : COLOR 15, 0: LOCATE 3, Ctr: PRINT Title$

&nbsp

LOCATE 4, 3: PRINT TD$

&nbsp

PORCH:

&nbsp

LOCATE 22, 1: PRINT BL$: LOCATE 22, 4: COLOR 14, 0

&nbsp

PRINT "F1 > Start"; TAB(65); "F9 > Quit"

&nbsp

COLOR 15, 0

&nbsp

KEY(1) ON: ON KEY(1) GOSUB START

&nbsp

KEY(9) ON: ON KEY(9) GOSUB QUIT

&nbsp

STAR:

&nbsp

Hand = TIMER + 7

&nbsp

DO: I$ = INKEY$

&nbsp

IF I$ <> "" THEN

&nbsp

IF ASC(I$) = 27 THEN GOTO QUIT

&nbsp

END IF

&nbsp

IF VAL(TIME$) >= 12 THEN

&nbsp

Dot$ = " AM": IF VAL(TIME$) >= 12 THEN Dot$ = " PM"

&nbsp

ZR$ = "": HD = VAL(TIME$) - 12: IF HD < 10 THEN ZR$ = "0"

&nbsp

TG$ = ZR$ + LTRIM$(STR$(HD)) + MID$(TIME$, 3) + Dot$

&nbsp

ELSE

&nbsp

Dot$ = " AM": TG$ = TIME$ + Dot$

&nbsp

END IF

&nbsp

IF VAL(TIME$) = 0 THEN

&nbsp

TG$ = "12" + MID$(TIME$, 3) + Dot$

&nbsp

END IF

&nbsp

LOCATE 4, 62: PRINT TG$

&nbsp

IF TIME$ = "00:00:00" THEN RUN

&nbsp

IF TIMER > Hand THEN GOSUB CLOAK

&nbsp

LOOP

&nbsp

START:

&nbsp

CLS : COLOR 15, 0: LOCATE 3, Ctr: PRINT Title$

&nbsp

LOCATE 4, 3: PRINT TD$

&nbsp

LOCATE 6, 6: INPUT "Your Balance $ ", Bal

&nbsp

IF Bal = 0 THEN RUN

&nbsp

LOCATE 6, 1: PRINT BL$: LOCATE 5, 27

&nbsp

PRINT USING SP$; Bal

&nbsp

LOCATE 7, 1: COLOR 15, 0

&nbsp

FOR Tic = 1 TO 6: PRINT TAB(3); N$(Tic)

&nbsp

NEXT Tic: COLOR 14, 0

&nbsp

FOR V = 1 TO 6: LOCATE 6 + V, W(V) + 3

&nbsp

LINE INPUT " ", D$(V)

&nbsp

IF V = 4 AND LTRIM$(D$(V)) = "" THEN D$(V) = DATE$

&nbsp

IF V = 1 AND LTRIM$(D$(V)) = "" THEN RUN

&nbsp

NEXT V

&nbsp

'

&nbsp

NW = MT

&nbsp

CLS : COLOR 15, 0: LOCATE 3, Ctr: PRINT Title$

&nbsp

LOCATE 4, 3: PRINT TD$: COLOR 14, 0

&nbsp

LOCATE 5, 3: PRINT D$(1); TAB(38);

&nbsp

PRINT USING SP$; VAL(D$(5));

&nbsp

PRINT TAB(66); D$(2)

&nbsp

LOCATE 6, 3

&nbsp

PRINT D$(3); TAB(35); D$(6); TAB(57);

&nbsp

PRINT USING SP$; Bal; : PRINT " Bal."

&nbsp

BML$ = ""

&nbsp

FOR RY = 1 TO 77: BML$ = BML$ + CHR$(205): NEXT RY

&nbsp

PRINT BML$: BML$ = ""

&nbsp

COLOR 15, 0

&nbsp

EN$ = RIGHT$(DATE$, 4)

&nbsp

LOCATE 8, 1

&nbsp

Bal2 = Bal: Pay = VAL(D$(5))

&nbsp

VIEW PRINT 8 TO 20

&nbsp

DO

&nbsp

Bal2 = Bal2 - Pay

&nbsp

G$ = MID$(D$(4), 4, 2)

&nbsp

BP$ = M$(NW) + " " + G$ + ", " + EN$

&nbsp

PRINT TAB(33 - LEN(BP$)); BP$;

&nbsp

PRINT TAB(50); : PRINT USING SP$; Bal2

&nbsp

IF NW = 12 THEN

&nbsp

NW = 0: VP = VAL(EN$) + 1: EN$ = LTRIM$(STR$(VP))

&nbsp

END IF

&nbsp

NW = NW + 1

&nbsp

J$ = INKEY$: IF J$ <> "" THEN BANK$ = "88"

&nbsp

IF BANK$ <> "88" THEN SLEEP 2

&nbsp

&nbsp

LOOP UNTIL Bal2 <= Pay: VIEW PRINT

&nbsp

TRUCK:

&nbsp

LOCATE 22, 1: PRINT BL$: LOCATE 22, 3

&nbsp

PRINT "Export Data Y=yes or N=no"

&nbsp

DO: Cot$ = INKEY$: IF UCASE$(Cot$) = "N" THEN RUN

&nbsp

LOOP UNTIL UCASE$(Cot$) = "Y"

&nbsp

REM ********************************************

&nbsp

REM BELOW EXPORT PRINT ROUTINE

&nbsp

REM ********************************************

&nbsp

BOARD:

&nbsp

LOCATE 22, 1: PRINT BL$: LOCATE 22, 3

&nbsp

LINE INPUT "\Path\Filename: ", Buck$

&nbsp

IF LTRIM$(Buck$) = "" THEN RUN

&nbsp

LOCATE 22, 1: PRINT BL$

&nbsp

IF INSTR(UCASE$(Buck$), ".TXT") = 0 THEN

&nbsp

Swan$ = Buck$ + ".Txt": Buck$ = Swan$: Swan$ = ""

&nbsp

END IF

&nbsp

CLOSE

&nbsp

IF DIR$(LTRIM$(Buck$)) = "" THEN

&nbsp

OPEN LTRIM$(Buck$) FOR OUTPUT AS 1

&nbsp

ELSE

&nbsp

OPEN LTRIM$(Buck$) FOR APPEND AS 1

&nbsp

END IF

&nbsp

BML$ = "": BANK$ = ""

&nbsp

NW = MT

&nbsp

PRINT #1, TAB(Ctr); Title$

&nbsp

LOCATE 4, 3: PRINT #1, TD$: COLOR 14, 0

&nbsp

LOCATE 5, 3: PRINT #1, D$(1); TAB(38);

&nbsp

PRINT #1, USING SP$; VAL(D$(5));

&nbsp

PRINT #1, TAB(66); D$(2)

&nbsp

PRINT #1, " "

&nbsp

PRINT #1, D$(3); TAB(35); D$(6); TAB(57);

&nbsp

PRINT #1, USING SP$; Bal; : PRINT #1, " Bal."

&nbsp

BML$ = ""

&nbsp

FOR RY = 1 TO 65: BML$ = BML$ + "=": NEXT RY

&nbsp

PRINT #1, BML$: BML$ = ""

&nbsp

COLOR 15, 0

&nbsp

EN$ = RIGHT$(DATE$, 4)

&nbsp

LOCATE 8, 1

&nbsp

Bal2 = Bal: Pay = VAL(D$(5))

&nbsp

DO

&nbsp

Bal2 = Bal2 - Pay

&nbsp

G$ = MID$(D$(4), 4, 2)

&nbsp

BP$ = M$(NW) + " " + G$ + ", " + EN$

&nbsp

PRINT #1, TAB(3); BP$;

&nbsp

PRINT #1, TAB(50); : PRINT #1, USING SP$; Bal2

&nbsp

IF NW = 12 THEN

&nbsp

NW = 0: VP = VAL(EN$) + 1: EN$ = LTRIM$(STR$(VP))

&nbsp

END IF

&nbsp

NW = NW + 1

&nbsp

LOOP UNTIL Bal2 <= Pay: CLOSE

&nbsp

LOCATE 20, 4

&nbsp

PRINT "Exported To File: [ "; Buck$; " ]"

&nbsp

SLEEP 4: XK$ = INKEY$: LOCATE 20, 1: PRINT BL$

&nbsp

GOTO TRUCK

&nbsp

QUIT:

&nbsp

SCREEN 0: WIDTH 80: COLOR 15, 0: CLS : SYSTEM

&nbsp

CLOAK:

&nbsp

RESTORE

&nbsp

Pick = INT(30 * RND) + 1

&nbsp

FOR KP = 1 TO Pick: READ Vet$: NEXT KP

&nbsp

LOCATE 22, 20: PRINT SPACE$(28)

&nbsp

LOCATE 22, 33: PRINT Vet$: Vet$ = "": RETURN STAR

&nbsp

'

&nbsp

DATA 4Runner,Accent,Acclaim,Accord

&nbsp

DATA Achieva,Aerio,Aerostar,Alero

&nbsp

DATA Allante,Alliance,Altima,Amigo

&nbsp

DATA Aries,Arnage,Arrow,Ascender

&nbsp

DATA Aspen,Aspire,Astro,Aurora

&nbsp

DATA Avalanche,Avenger,Aviator,Axiom

&nbsp

DATA Axxess,Aztek,Azure,Baja

&nbsp

DATA Barchetta,Beetle,Beretta,Blackwood

&nbsp

DATA Blazer,Bonneville,Boxter,Brat

&nbsp

DATA Brava,Bravada,Breeze,Bronco

&nbsp

DATA Brooklands,Brougham,Caballero,Cabrio

&nbsp

DATA Cabriolet,Calais,Camargue,Camry

&nbsp

DATA Capri,Caprice,Caravan,Caravelle

&nbsp

DATA Catera,Cavalier,Cayenne,Celebrity

&nbsp

DATA Celica,Century,Challenger,Champ

&nbsp

DATA Charade,Charger,Cherokee,Chevelle

&nbsp

DATA Chevette,Cheyenne,Ciera,Cimarron

&nbsp

DATA Cirrus,Citation,Civic,Club Wagon

&nbsp

DATA Colorado,Colt,Comanche,Concord

&nbsp

DATA Concorde,Conquest,Continental,Contour

&nbsp

DATA Cooper,Cordia,Cordoba,Corniche

&nbsp

DATA Corolla,Corrado,Corsica,Corvette

&nbsp

DATA Cougar,Countach,Courier,Cressida

&nbsp

DATA Crown Victoria,Cutlass,Dakota,Dart

&nbsp

DATA Dasher,Daytona,Defender,del Sol

&nbsp

DATA DeVille,Diablo,Diamante,Dino

&nbsp

DATA Diplomat,Discovery,Durango,Duster

&nbsp

DATA Dynasty,Eagle,Echo,Eclipse

&nbsp

DATA Econoline,Eight,Eighty-Eight,Elantra

&nbsp

DATA ElCamino,Eldorado,Electra,Element

&nbsp


r/qbasic • • Apr 24 '23

need Qbasic help

3 Upvotes

Hey guys i know this is not the best thing to ask for but i am kinda desperate. Tommorow i have qbasic exam and ive been too bussy with studying c# and delphi so i didnt prepare for it, if anyone is willing to help me I would be so happy. I know its basically cheating but im desperate. Thanks


r/qbasic • • 17d ago

can anybody explain this?

Thumbnail
gallery
13 Upvotes

is this an undocumented function in QB4.5? i can't find an explanation of what's going on here. i found this little snippet of code on an archive of shareware software from 1990.


r/qbasic • • Sep 04 '25

She is Ciria... my beloved...

Post image
4 Upvotes

r/qbasic • • Mar 17 '23

How to read input from the user in QBASIC?

Thumbnail
devhubby.com
4 Upvotes

r/qbasic • • May 24 '22

HISTORY EDUCATION: a Wikipedia article about the PC speaker..... this would be the hardware speaker used for the PLAY command on GW-BASIC and QuickBasic and QBasic running on authentic old school IBM and clones running MS-DOS, while newer hardware emulates it via DOSBox and QB64.

Thumbnail
en.wikipedia.org
5 Upvotes

r/qbasic • • Apr 19 '24

qbasic program my dad made 30+ years ago (not working)

6 Upvotes

My dad made a music generation program in the early 90s. I think I found the code for it on a floppy disk last night. It doesn't seem to work on my end running qbasic in dosbox, but I also don't really know what I'm doing, so wanted to paste it here in case someone more knowledgeable with a different version of basic/qbasic has any luck. Here's the code, filename "coolsong.bas":


REM coolsong.bas play cool songs rob & dad

REM GOTO randomsong

GOTO randomsong2

dadsong: PLAY "geefddcdefggggeefddceggccc"

ROBSONG:

LET counter% = 1

DO UNTIL counter% > 4

LET counter% = counter% + 1

PLAY "cdefgfedl8ccddeeffggffeeddccc"

LOOP

dadsong2: PLAY "gl8ddl4el3dl4f+gf+gag"

randomsong: LET counter% = 1

DO UNTIL counter% > 5

LET counter% = counter% + 1

PLAY "l16agcbedfgdecgcfg"

LOOP

momsong: PLAY "l8cdefgabccccdedededeffedeefgfgfgfgaagfg"

randomsong2: RANDOMIZE (3651)

NOTES$ = "abcdefg"

INPUT NOTES$(INT(RND * 6), 1), FLD1$

notes2$(1, 1) = NOTES$(1, INT(RND * 6))

notes2$(1, 2) = NOTES$(1, INT(RND * 6))

notes2$(1, 3) = NOTES$(1, INT(RND * 6))

notes2$(1, 4) = NOTES$(1, INT(RND * 6))

notes2$(1, 5) = NOTES$(1, INT(RND * 6))

notes2$(1, 6) = NOTES$(1, INT(RND * 6))

notes2$(1, 7) = NOTES$(1, INT(RND * 6))

notes2$(1, 8) = NOTES$(1, INT(RND * 6))

notes2$(1, 9) = NOTES$(1, INT(RND * 6))

INPUT notes2$, FIELDS%

PLAY "notes2$"


r/qbasic • • Aug 22 '19

A BASIC code emulating the timer system on the Neopets game Gormball. Written in GW-BASIC.

Post image
5 Upvotes

r/qbasic • • Nov 12 '21

Haven't Coded For A Few Years So Decided To Make A Little Animated Screen Saver

6 Upvotes

QB64 Code:

handle& = _NEWIMAGE(320, 200, 256)
SCREEN handle&
_FULLSCREEN
RANDOMIZE TIMER
Frame_Limit = 30
b = 12
DIM blobH(1 TO b)
DIM blobV(1 TO b)
DIM blobS(1 TO b)
DIM blobhS(1 TO b)
DIM blobvS(1 TO b)
FOR i = 1 TO b
    blobH(i) = (RND * 320)
    blobV(i) = (RND * 200)
    blobS(i) = 150 + (RND * 300)
    blobhS(i) = (RND * 2) - 1
    blobvS(i) = (RND * 2) - 1
NEXT i
DO
    FOR i = 1 TO b
        blobH(i) = blobH(i) + blobhS(i)
        blobV(i) = blobV(i) + blobvS(i)
        blobhS(i) = blobhS(i) + (RND * 0.05) - 0.025
        blobvS(i) = blobvS(i) + (RND * 0.05) - 0.025
        IF blobhS(i) < -1 THEN blobhS(i) = -1
        IF blobhS(i) > 1 THEN blobhS(i) = 1
        IF blobvS(i) < -1 THEN blobvS(i) = -1
        IF blobvS(i) > 1 THEN blobvS(i) = 1
        IF blobH(i) < 0 OR blobH(i) > 320 THEN blobhS(i) = blobhS(i) - (2.1 * blobhS(i))
        IF blobV(i) < 0 OR blobV(i) > 200 THEN blobvS(i) = blobvS(i) - (2.1 * blobvS(i))
    NEXT i
    CLS
    FOR h = 0 TO 320
        FOR v = 0 TO 200
            total = 0
            FOR i = 1 TO b
                temph = h - blobH(i)
                tempv = v - blobV(i)
                d = (temph * temph) + (tempv * tempv)
                total = total + (1 / (d / blobS(i)))
            NEXT i
            SELECT CASE total
                CASE IS > 1.6: COLOR 16: PSET (h, v)
                CASE IS > 1.3: COLOR 3: PSET (h, v)
                CASE IS > 1.2: COLOR 5: PSET (h, v)
                CASE IS > 1.08: COLOR 8: PSET (h, v)
                CASE IS > 1: COLOR 31: PSET (h, v)
            END SELECT
        NEXT v
    NEXT h
    _DISPLAY
LOOP WHILE INKEY$ = "" AND _MOUSEINPUT = 0
SYSTEM

r/qbasic • • Jul 19 '15

Check out the new QB64 subreddit! It's brand new, fill it up with posts!

Thumbnail
reddit.com
6 Upvotes

r/qbasic • • 12d ago

QBX: QBasic environment written in C#

20 Upvotes

Thought folks here might find this interesting. It's an entire QBasic environment apparently written in C#. Not sure what the current status is, but pretty cool to see, especially with all the other retro development environments and emulators popping up lately.

https://github.com/logiclrd/QBX


r/qbasic • • Jul 25 '20

The Future of Quick Basic

7 Upvotes

QBasic 64 The Future of quick Basic

https://www.qb64.org/portal/


r/qbasic • • Jan 28 '18

Snow Basic, written in qbasic. Made my own programming language in qbasic. Looking for feedback

Thumbnail
qb64.thejoyfulprogrammer.com
7 Upvotes

r/qbasic • • Oct 27 '26

QBLike - QBasic recreated for Windows / Linux

Post image
88 Upvotes

This project attempts to recreate the QBasic 1.1 interpreter and IDE in modern OSs, Windows / Linux binaries included, MacOS possible (if you compile from source). It implements all commands and emulates some MSDOS stuff to the point I was able to run all my old software plus some classics (like the original Wetspot). It is built on top of dos-like and it includes some additions such as native mouse support, the ability to play samples or MOD/MID files, a couple of enhancements to existing commands (a MASK method for PUT, for example), loads BMP / GIT to the screen or to PUT arrays, has huge memory limits (no more 64K constraints), etc.

It's still very early but I'd like to share it. I'm working on reproducing the quirks of the language and possibly add more to the emulation layer if that's necesary - I've just added what my old programs needed (for example, it can run the s3m ADLIB player by bisqwit). You can get it from GitHub - mojontwins/qblike: QBasic clone built upon dos-like for Windows & Linux · GitHub . MIT license.

There's documentation about the new features and general usage in the github repo linked above. For example, those are the extensions: qblike/EXTENSIONES_en.md at master · mojontwins/qblike · GitHub

Any comments are welcome.


r/qbasic • • Jun 28 '22

We made it past 386 SUBSCRIBERS!!!!!

10 Upvotes

One thing I understand, is that most programs written for QuickBasic 4.5 and QBasic 1.1 can run on processors that are less powerful than an Intel 386 although they also run on 386 and above as well.

But the thing I'm excited to see here is the progress of the subreddit's growth.


r/qbasic • • Sep 01 '26

Karma City 2!

9 Upvotes

KARMA CITY 2! Coming soon!

This is my biggest project yet! It's a fully textured 3D open-world, rendered with Mode 7 and polygon mapping in QB64—that is no small feat! No hardware acceleration shortcuts or modern engine wrappers—just pure math, pixel manipulation, and vertex projection driving the whole world! This time the game is about an alien invasion, but with a twist: they are demons! Can you find out the truth about these malicious invaders? The game will feature various types of gameplay, what you see in this video is just the beginning.
https://youtu.be/oNnpRKryGHo?si=6wTMfNyxn4ZvcVFx


r/qbasic • • May 08 '21

A general portrayal of the mind of people who ask icebreaker questions.

Post image
13 Upvotes

r/qbasic • • Jul 25 '26

MoonBAISC

1 Upvotes

MoonBASIC is a 2D 3D game creation made easy. CharmingBlaze/moonbasic


r/qbasic • • Oct 26 '24

Fantastic Lands of Aetricia retro dungeon crawler in QB64

Thumbnail
gallery
7 Upvotes

r/qbasic • • Nov 04 '25

My QB64 Shoot 'em up: ASSTEROID BLASSTER

Post image
18 Upvotes

EDIT: URL IS NOW PUBLIC (it was set to restricted before).

You can download the game here: Assteroid Blasster FLOPPY DISK EDITION by Greater Evil Games
I programmed this back in 2017. Had some fun ideas for a physical release on floppy disk, but still haven't done it so figured it was time to see the light of day. A heart-pounding shoot 'em up over the surface of Uranus. Game features:

* Three distinct space craft, each with their own abilities!
* Strategic use of thruster ability to move around the screen!
* 10 Asschievements that test your skills and abilities!
* An engaging story followed by an endless Arcade mode once you complete the game!


r/qbasic • • Oct 01 '23

Minesweeper made with VBDOS

15 Upvotes

I've just uploaded to GitHub and my web page a new game I've made using VBDOS. It's a Minesweeper game, complete with different board sizes, optional PC speaker audio and full keyboard support - mouse recommended, but not needed.

I chose to make this game, because I wanted to try out bit-wise operators, and see if I could store all attributes of each cell on the board - mined, cleared, flagged, selected via keyboard etc. - using a single integer variable pr. cell. It made for a fun little challenge, which combined with nostalgia is why we still use QB/VBDOS, right? :)

I've made it using the library for my GUI/shell Costa, and as such I have released it as part of this.

Source code and compiled release available on https://github.com/jacobpalm/costa, and on my own website https://costa.jacobpalm.dk/ where I also have a small blog where I sometimes post about the development.

Feedback on the game itself, and the code, is welcome - I'm always trying to learn and get better.