Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Help in count!!!
Index -> Programming, Turing -> Turing Help
Goto page Previous  1, 2
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Andy




PostPosted: Mon Dec 01, 2003 6:27 pm   Post subject: (No subject)

lol... tony make mckenzie a mod... lol i'd love to see me get banned by my compsci teacher
Sponsor
Sponsor
Sponsor
sponsor
DBZ




PostPosted: Mon Dec 01, 2003 8:21 pm   Post subject: (No subject)

I am telling yo! i have tried every single thing but it just won't work i don't know why. Here i am giving u what i have so far and put your suggestions in the program please. THanx!!!!!!

Code:


%Declaring variables
var colback, ballcol:int
var x := maxx div 2
var y := maxy div 2

%Procedure
proc circle
randint(ballcol,5,225)
drawfilloval (x, y, 20, 20, ballcol)
end circle

%Setting screen
setscreen ("nocursor")

%loop statement
loop

loop
delay(10)
randint(colback,5,50)
colorback(colback)
%Exiting from the program
exit when x < 0 or x > maxx or y < 0 or y > maxy
circle
delay (50)
cls
randint (x, x - 15, x + 15)
randint (y, y - 15, y + 15)
end loop
x := maxx div 2
y := maxy div 2

end loop
Andy




PostPosted: Mon Dec 01, 2003 8:31 pm   Post subject: (No subject)

wtf? you didnt even change anything from ur original code!!! do you not take in our comments? arg fine i'll do it for you... mckeanzie dont kill me... lol

code:
var runtime : int
put "run for how many seconds?"
get runtime
runtime += 1
runtime *= 1000

%Declaring variables
var colback, ballcol : int
var x := maxx div 2
var y := maxy div 2

%Procedure
proc circle
    randint (ballcol, 5, 225)
    drawfilloval (x, y, 20, 20, ballcol)
end circle

%Setting screen
setscreen ("nocursor")

%loop statement
loop

    loop
        if Time.Elapsed >= runtime then
            colorback (white)
            cls
            put "good bye"
            return
        end if
        delay (10)
        randint (colback, 5, 50)
        colorback (colback)
        %Exiting from the program
        exit when x < 0 or x > maxx or y < 0 or y > maxy
        circle
        delay (50)
        cls
        randint (x, x - 15, x + 15)
        randint (y, y - 15, y + 15)
    end loop
    x := maxx div 2
    y := maxy div 2

end loop
AsianSensation




PostPosted: Mon Dec 01, 2003 8:48 pm   Post subject: (No subject)

jeez DBZ, why don't you show us what you tried to do? Maybe then we will show you what you did wrong. I mean, do you not understand the concept of working stuff out by yourself? This time you got lucky, you managed to annoy andy so much that he did the thing for you, tell me, if your teacher asks another question like that, are you going to be able to do it? What if he asks you this on the test? Huh? What? How are you going to survive then?

Quote:
I am telling yo! i have tried every single thing but it just won't work i don't know why. Here i am giving u what i have so far and put your suggestions in the program please. THanx!!!!!!


you tried everything? Really now, if you tried everything, then you would be able to do that program. We gave you all the stuff you need to do this thing. I even gave you the code, tony even suggested defining the variable. We explained how clock works, so why don't you spend some time thinking it out? Maybe if you took two seconds out of your busy life to think then you can actually do that program? Seriously, doesn't it take longer to type out that stuff then to think about the program?

p.s. tony, make me a turing mod so I can edit these posts, jeez.
Andy




PostPosted: Mon Dec 01, 2003 8:51 pm   Post subject: (No subject)

me 2 Very Happy
plz? lol
o and DBZ u noe... it took me less time to do the program than to post all my replies...
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 2 of 2  [ 20 Posts ]
Goto page Previous  1, 2
Jump to:   


Style:  
Search: