Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
freiza
21
Years of Service
User Offline
Joined: 22nd Jul 2003
Location:
Posted: 25th Jul 2003 21:35
i need some help im using the guide from the dark basic usermanual i have
2 parts im in need of help with ok lets start with variable drawing
problem this 1 may sound silly but here it goes i got this code
v
=0
cx=160
cy=120
DO
ox=cos(v)*100
oy=sin(v)*100
v=v+1
DOT cx+ox,cy+oy
LOOP
and i need to unserstand this and how to do it
CHANGE THE PROGRAM TO MOVE THE CENTER OF DOT CIRCLE AS IT'S BEING DRAWN
if you could please tell me what i should do

--------------------------------------------------------------------

And secondly i need help in stock market arrays with this code
DIM companies(5,2)
companies(1,1)=90 : companies(1,2)=200
companies(2,1)=70 : companies(2,2)=1000
companies(3,1)=60 : companies(3,2)=2000
companies(4,1)=20 : companies(4,2)=1500
companies(5,1)=15 : companies(5,2)=300
CLS
FOR c=1 TO 5
PRINT "#";c;" Price ";companies(c,1);" quantity ";companies(c,2)
NEXT c
INPUT "enter a company number(1-5)>";index
PRINT "company#";index;"change request"
INPUT "enter new price>";price
INPUT "enter new Quantity>";quantity
companies(index,1)=price
companies(index,2)=quantity

1.CHANGE THE PROGRAM TO LOOP AND EXIT WHEN THE USER ENTERS ZERO FOR COMPANY
NUMBER
2.CHANGE THE PROGRAM RANDOMLY CHANGE THE STOCK PRICE IN EACH COMPANY EVERY
CYCLE
3.CHANGE THE PROGRAM TO LIST THE WORTH OF EACH COMPANY (price*quantity)

thank you and if you can please send it to realm_knights@hotmail.com
or post on these forums
Attreid
21
Years of Service
User Offline
Joined: 27th Nov 2002
Location:
Posted: 25th Jul 2003 22:33
hmm .. I'm not sure what you want to do, but ... for your first code :


for the second one :
1. if index = 0 then we don't read the inputs and others lines until the loop
2. it's done
3. it's done




if you have question, hask them in the forum

"He will come...the voice from the outer world,
bringing the holy war, the Jihad, which will cleanse the Universe and bring us out of darkness."
freiza
21
Years of Service
User Offline
Joined: 22nd Jul 2003
Location:
Posted: 25th Jul 2003 23:22
you are a life saver but i still need 1 more thing on the snd code i need it to loop then end the program if some 1 chooses 0 for any company

Shady Simpson
21
Years of Service
User Offline
Joined: 15th Mar 2003
Location: United Kingdom
Posted: 25th Jul 2003 23:46
well I've edited your code and now it checks to see if the user pressed 0 and it only allows the user to enter numbers.

see the rem commands to see what I did.

Hope this helped.

freiza
21
Years of Service
User Offline
Joined: 22nd Jul 2003
Location:
Posted: 26th Jul 2003 01:05
ty very much you 2

Login to post a reply

Server time is: 2024-09-20 17:27:46
Your offset time is: 2024-09-20 17:27:46