return to tranceaddict TranceAddict Forums Archive > Main Forums > Chill Out Room

Pages: [1] 2 3 
Just Starting Programming
View this Thread in Original format
meneedit
thats right i'm just starting programming in quick basic.
lol! so very old...

anyways, what have I done wrong here:

==========================================================
CLS

PRINT "How are You?"
INPUT answer$

IF UCASE$(answer$) = "GOOD" THEN
PRINT "thats good"
ELSE
IF UCASE$(answer$) = "BAD" THEN
PRINT "why?"
ELSE
PRINT "what the hell?"
END IF
END IF

PRINT "what are you doing today?"
IF UCASE$(answer$) = "listening to music" THEN
PRINT "cool, what type of music are you into"
IF UCASE$(answer$) = "electronic" THEN
PRINT "no way!!!! me too!"
PRINT
PRINT "hmmm, which artists do you like?"
IF UCASE$(answer$) = "sonic animation"
or "prodigy"
or "the prodigy"
or "hybrid"
or "moby"
or "crystal method"
or "chemical brothers" THEN
PRINT "yep! good stuff"
PRINT
PRINT "so whats your favourite choon?"
IF UCASE$(answer$) = "music response"
==========================================================

:) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :)
Boomer187
stop learning this and learn php...




then I can help you
TweeK
I was taking C++ classes in high school but i sucked and quit.:toothless
PVD & T[]C
NERD!!!


im just joking. i am one myself. i dont know basic. i know calculator programming and im a flash master...sometimes


i suggest just buying a book.
meneedit
1. "doh!"
2. "doh!"
3. "doh!"

oh well it was worth a shot.

its too old isnt it :(
MOSCHINO
I pretty much make my living by looking at code (.NET mostly) I don't like it but it's good to know and if you really good you can pretty much write your own ticket. I work with people who take home over 120k and those guys not ever 30.
itsTrueSonic
quote:
Originally posted by meneedit
thats right i'm just starting programming in quick basic.
lol! so very old...

anyways, what have I done wrong here:

==========================================================
CLS

PRINT "How are You?"
INPUT answer$

IF UCASE$(answer$) = "GOOD" THEN
PRINT "thats good"
ELSE
IF UCASE$(answer$) = "BAD" THEN
PRINT "why?"
ELSE
PRINT "what the hell?"
END IF
END IF

PRINT "what are you doing today?"
IF UCASE$(answer$) = "listening to music" THEN
PRINT "cool, what type of music are you into"
IF UCASE$(answer$) = "electronic" THEN
PRINT "no way!!!! me too!"
PRINT
PRINT "hmmm, which artists do you like?"
IF UCASE$(answer$) = "sonic animation"
or "prodigy"
or "the prodigy"
or "hybrid"
or "moby"
or "crystal method"
or "chemical brothers" THEN

PRINT "yep! good stuff"
PRINT
PRINT "so whats your favourite choon?"
IF UCASE$(answer$) = "music response"
==========================================================

:) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :)


-for one thing, your long IF statement at the end, there is no END IF clause ender to tell the parser where the END IF is ending. I don't know about QBasic, but in regular VB, you can set a one-line if statement without setting an "end if" clause by typing "then:" rather than "then".

-this line :
PRINT "what are you doing today?"

you did not have a input() statement set to wait for user input.
you can replace the input with PRINT like this :

INPUT "what are you doing today", $answer

-close this IF STATMENT CLAUSE :

IF UCASE$(answer$) = "electronic" THEN

that way, you can exclude the other statements you want.

- you could be getting improper output that you did not want.
ShadoWolf
Turing ownz u all
Mike Vicious
Don't waste your time with QBasic, Learn C and C++ if anything..
itsTrueSonic
quote:
Originally posted by meneedit
1. "doh!"
2. "doh!"
3. "doh!"

oh well it was worth a shot.

its too old isnt it :(



yes this is old .. actually, c++ was invented before qbasic, if anyone wants to know that.. hahahhaha .. why doesn't anyone want to talk about that, huh???



:nervous: :nervous:


even though qbasic is very primitive in a structural programmer's way, it is a very good language to start off with if one has no computer language skills. one can consider it the pebble to start on before getting on the big rock.

by the ways, the structure of qbasic is the same as php, even though php uses c++ language.

Matt Jay
I'm scared of programming ever since I did a course on Java, i'm gonna stick to networking & hardware :nervous:
itsTrueSonic
quote:
Originally posted by Mike Vicious
Don't waste your time with QBasic, Learn C and C++ if anything..



i think java would suit better for the guy.

java is easier to understand, rather than c/c++, and the fundamentals of programming is easier to implement into java than c.c++. c is a great language to use, for his type, java is better.
CLICK TO RETURN TO TOP OF PAGE
Pages: [1] 2 3 
Privacy Statement