Fun with Basic

Started by seeker, December 13, 2008, 03:20:21 PM

Previous topic - Next topic

seeker

From overthinkingit.com

Fun with BASIC

10   PRINT “Do you have a problem? (Y or N)”
20   INPUT $A
30   IF $A = “N” GOTO 120

40   PRINT “Can someone else help? (Y or N)”
50   INPUT $B
60   IF $B = “Y” GOTO 120

70   PRINT “Can you find them? (Y or N)”
80   INPUT $C
90   IF $C = “N” GOTO 120

100 PRINT “Maybe you can hire… the A-Team.”
110 GOTO 130

120 PRINT “You cannot hire the A-Team.”

130 END

Rev. Millertime

I solve my problems like an adult, at the strip club drinking on a work night.

lethe

Some of the controls programming I do is similar to basic.
In your honor I will incorporate something a version on that in, it will confuse the hell out of someone years from now who looks at it.
'05 Monster 620
'86 FZ600
'05 KTM SMC 625

teddy037.2

LOL!

god, I haven't done anything in basic in... years...!

lethe

Quote from: teddy037.2 on December 13, 2008, 04:44:13 PM
LOL!

god, I haven't done anything in basic in... years...!
With the older style shit I do it would look like this....

#PLB08K
#SOLODX

;PROGRAM SUMMONS THE A-TEAM

;ATTRIBUTES
;AM==>MODE OF PROGRAM (0=MANUAL/1=AUTO)
;WT==>PROGRAM TIME DELAY
;BA==>A-TEAM OPTION

          ATTR;AM,254=1
          ATTR;WT,254=3
          ATTR;BA,254=0

;EQUATE STATEMENTS
PROBLEM EQU FE01;CV
HELP EQU FE02;CV
FIND EQU FE03;CV
ATEAM EQU FB01;CV

ERRORWAIT

CHKMDE:
        SECTION 1
        SWAIT [;WT]
        IF [;AM]==0 THEN CHKMDE
        GOTO CHKPROBLEM

CHKPROBLEM:
        SECTION 2
        IF PROBLEM==1 THEN CHKHELP
        GOTO TEAMNOTNEEDED

CHKHELP:
        SECTION 3
        IF HELP==0 THEN CHKFIND
        GOTO TEAMNOTNEEDED

CHKFIND:
        SECTION 4
        IF FIND==1 THEN SUMMON
        GOTO TEAMNOTNEEDED

TEAMNOTNEEDED:
        SECTION 5
        [;BA]=0
        ATEAM=0
        GOTO CHKMDE

SUMMON:
        SECTION 6
        [;BA]=1
        ALARM 150,"PITY THE FOOL!"
        ATEAM=1
        GOTO CHKMDE
'05 Monster 620
'86 FZ600
'05 KTM SMC 625

He Man

cout <<"Do you need help? yes or no" << endl;
cin >> help;

if (help==yes);
cout <<"A team not available please try again later.";

else
cout <<"Your make the beast with two backsed mate";

lethe

I could also show a screen shot of this done in Honeywell XLWeb programming but it wouldn't be much fun to look at, just green function blocks and lines.
'05 Monster 620
'86 FZ600
'05 KTM SMC 625

He Man

Quote from: lethe on December 13, 2008, 05:29:46 PM
I could also show a screen shot of this done in Honeywell XLWeb programming but it wouldn't be much fun to look at, just green function blocks and lines.

what? lol how does that look?

lethe

Quote from: He Man on December 13, 2008, 08:56:47 PM
what? lol how does that look?
There's green blocks that when you click on them gets you the the logic within, usually stuff like switching tables, math and such. The lines are for connecting the results of one block to another and inputs from points in the system. This and my other example of older type stuff above are for HVAC controls programming.
'05 Monster 620
'86 FZ600
'05 KTM SMC 625

Monsterlover

Soooo. ..

it looks like the Matrix?
"The Vincent was like a bullet that went straight; the Ducati is like the magic bullet in Dallas that went sideways and hit JFK and the Governor of Texas at the same time."--HST    **"A man who works with his hands is a laborer.  A man who works with his hands and his brain is a craftsman.  A man who works with his hands, brains, and heart is an artist."  -Louis Nizer**

Buckethead

Quote from: Jester on April 11, 2013, 07:29:35 AM
I can't wait until Marquez gets on his level and makes Jorge trip on his tampon string. 

lethe

Quote from: Monsterlover on December 15, 2008, 07:54:43 PM
Soooo. ..

it looks like the Matrix?
I'll do a screen capture at some point during the day when I'm using it and post it tonight when I get home.
'05 Monster 620
'86 FZ600
'05 KTM SMC 625

Monsterlover

"The Vincent was like a bullet that went straight; the Ducati is like the magic bullet in Dallas that went sideways and hit JFK and the Governor of Texas at the same time."--HST    **"A man who works with his hands is a laborer.  A man who works with his hands and his brain is a craftsman.  A man who works with his hands, brains, and heart is an artist."  -Louis Nizer**

ZLTFUL

When I worked at an autoparts store back in the mid 90s, I used to start the basic program and create small games and the like to kill the boredom.

And every monday morning i would get a call from the computer guy at the warehouse asking me to get him out of my latest creation.  [evil]
Avatar courtesy of www.mybadco.com
2012 Panigale 1199
2003 KTM 640 Adventure