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