Become a part of the TranceAddict community!Frequently Asked Questions - Please read this if you haven'tSearch the forums
TranceAddict Forums > Main Forums > Chill Out Room > Just Starting Programming
Pages (3): [1] 2 3 »   Last Thread   Next Thread
Share
Author
Thread    Post A Reply
meneedit
Supreme tranceaddict



Registered: Dec 2001
Location:
Just Starting Programming

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"
==========================================================

Old Post Aug-18-2004 02:22 
Click Here to See the Profile for meneedit Click here to Send meneedit a Private Message Add meneedit to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Boomer187
Spicy Hotdog



Registered: Aug 2001
Location: USA

stop learning this and learn php...




then I can help you

Old Post Aug-18-2004 02:39  United States
Click Here to See the Profile for Boomer187 Click here to Send Boomer187 a Private Message Visit Boomer187's homepage! Add Boomer187 to your buddy list Report this Post Reply w/Quote Edit/Delete Message
TweeK
What About The Future



Registered: Apr 2004
Location: Underground Pirate Station [JSRF]

I was taking C++ classes in high school but i sucked and quit.


___________________

Old Post Aug-18-2004 02:44  Mexico
Click Here to See the Profile for TweeK Click here to Send TweeK a Private Message Add TweeK to your buddy list Report this Post Reply w/Quote Edit/Delete Message
D-res
Hangin from Sagan's uvula



Registered: May 2004
Location: Milwaukee, WI

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.

Old Post Aug-18-2004 02:46  United States
Click Here to See the Profile for D-res Click here to Send D-res a Private Message Add D-res to your buddy list Report this Post Reply w/Quote Edit/Delete Message
meneedit
Supreme tranceaddict



Registered: Dec 2001
Location:

1. "doh!"
2. "doh!"
3. "doh!"

oh well it was worth a shot.

its too old isnt it

Old Post Aug-18-2004 02:50 
Click Here to See the Profile for meneedit Click here to Send meneedit a Private Message Add meneedit to your buddy list Report this Post Reply w/Quote Edit/Delete Message
MOSCHINO
Suspended User



Registered: Jul 2003
Location: i(6aR,9R)-N,N-diethyl-7-methyl-4,6,6a,7,8,9-

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.


___________________
Yeah…you like to get cookie…a lot…you like the cookie when its late at night….you like the way the cookie tastes, you like the way the cookie smells….you like how the cookie makes you feel…can I have a bite of your cookie – COOKIE DOUGH DYNAMO!

MOSCHINO LOVES YOU...

Old Post Aug-18-2004 03:01  Trinidad and Tobago
Click Here to See the Profile for MOSCHINO Click here to Send MOSCHINO a Private Message Add MOSCHINO to your buddy list Report this Post Reply w/Quote Edit/Delete Message
itsTrueSonic
NullPointerException



Registered: Aug 2003
Location:
Re: Just Starting Programming

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.

Old Post Aug-18-2004 04:09  Afghanistan
Click Here to See the Profile for itsTrueSonic Click here to Send itsTrueSonic a Private Message Add itsTrueSonic to your buddy list Report this Post Reply w/Quote Edit/Delete Message
ShadoWolf
ISOS



Registered: Apr 2002
Location: State of Trance

Turing ownz u all


___________________
Nathan Fake - Outhouse (Valentino Kanzyani Remix) || ID PLZ! PVD ID!!!
Disco and classical had sex while watching a sci-fi movie. Their child: trance.

Old Post Aug-18-2004 04:11  United Nations
Click Here to See the Profile for ShadoWolf Click here to Send ShadoWolf a Private Message Add ShadoWolf to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Mike Vicious
HIM



Registered: Aug 2004
Location: insomnia [dc]

Don't waste your time with QBasic, Learn C and C++ if anything..


___________________
sig edited: sig exceeds size limits. please resize

Old Post Aug-18-2004 04:13  United States
Click Here to See the Profile for Mike Vicious Click here to Send Mike Vicious a Private Message Visit Mike Vicious's homepage! Add Mike Vicious to your buddy list Report this Post Reply w/Quote Edit/Delete Message
itsTrueSonic
NullPointerException



Registered: Aug 2003
Location:

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???






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.

Old Post Aug-18-2004 04:15  Afghanistan
Click Here to See the Profile for itsTrueSonic Click here to Send itsTrueSonic a Private Message Add itsTrueSonic to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Matt Jay
Supreme tranceaddict



Registered: Sep 2003
Location: Brisbane, Australia

I'm scared of programming ever since I did a course on Java, i'm gonna stick to networking & hardware

Old Post Aug-18-2004 04:18  Australia
Click Here to See the Profile for Matt Jay Click here to Send Matt Jay a Private Message Add Matt Jay to your buddy list Report this Post Reply w/Quote Edit/Delete Message
itsTrueSonic
NullPointerException



Registered: Aug 2003
Location:

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.

Old Post Aug-18-2004 04:18  Afghanistan
Click Here to See the Profile for itsTrueSonic Click here to Send itsTrueSonic a Private Message Add itsTrueSonic to your buddy list Report this Post Reply w/Quote Edit/Delete Message

TranceAddict Forums > Main Forums > Chill Out Room > Just Starting Programming
Post New Thread    Post A Reply

Pages (3): [1] 2 3 »  
Last Thread   Next Thread
Click here to listen to the sample!Pause playbackID please, some older track part II :-) [2005] [9]

Click here to listen to the sample!Pause playbackHuman Evolution - Human Evolution [2002]

Show Printable Version | Subscribe to this Thread
Forum Jump:

All times are GMT. The time now is 19:25.

Forum Rules:
You may not post new threads
You may not post replies
You may not edit your posts
HTML code is ON
vB code is ON
[IMG] code is ON
 
Search this Thread:

 
Contact Us - return to tranceaddict

Powered by: Trance Music & vBulletin Forums
Copyright ©2000-2026, Jelsoft Enterprises Ltd.
Privacy Statement / DMCA
Support TA!