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

Username:   Password: 
 RegisterRegister   
 Grade 10 Student Needs Help!!!
Index -> Programming, Turing -> Turing Help
Goto page Previous  1, 2, 3  Next
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
BangBangMario




PostPosted: Sun Jan 05, 2014 10:55 am   Post subject: Re: Grade 10 Student Needs Help!!!

so what am i to take out and where should i add the "i" in and by the way what does the "i" even mean??
Sponsor
Sponsor
Sponsor
sponsor
Raknarg




PostPosted: Sun Jan 05, 2014 11:51 am   Post subject: RE:Grade 10 Student Needs Help!!!

first off I screwed up, it should be:

for decreasing i : 5 .. 1

Second, it doesn't matter what you call it. It can be i, or q, or counter, or flibbertigibbet. You wanted a way to make a for loop that decreased, I showed you how to make one. Try to apply what I showed you to your code.

It's very close. Everything you're doing is right, the syntax is just a little off.
Raknarg




PostPosted: Sun Jan 05, 2014 11:51 am   Post subject: RE:Grade 10 Student Needs Help!!!

first off I screwed up, it should be:

for decreasing i : 5 .. 1

Second, it doesn't matter what you call it. It can be i, or q, or counter, or flibbertigibbet. You wanted a way to make a for loop that decreased, I showed you how to make one. Try to apply what I showed you to your code.

It's very close. Everything you're doing is right, the syntax is just a little off.
BangBangMario




PostPosted: Sun Jan 05, 2014 12:07 pm   Post subject: Re: Grade 10 Student Needs Help!!!

background
setscreen ("offscreenonly")
for decreasing y : 350 .. 250 by 30
drawfilloval (325, y, 25, 25, 4)
View.Update
delay (25)
end for



this is working now but i cant figure out how to get rid of the trail that is left behind
BangBangMario




PostPosted: Sun Jan 05, 2014 12:09 pm   Post subject: Re: Grade 10 Student Needs Help!!!

never mind i got it, i forgot to put my background after the for decreasing y : 350 .. 250 by 2
BangBangMario




PostPosted: Sun Jan 05, 2014 12:22 pm   Post subject: Re: Grade 10 Student Needs Help!!!

so now i have encountered another problem, after i got the circle to move down i need it to move to the left and down again about 6 more times and my teacher said to do it strictly with loops... could you help me out?
Raknarg




PostPosted: Sun Jan 05, 2014 12:33 pm   Post subject: RE:Grade 10 Student Needs Help!!!

An easier way would be too keep track of the balls position. Consider this:

Turing:

var x, y : int := 200

for rep : 1 .. 4
    for changex : 1 .. 50
        x -= 1
        Draw.FillOval(x, y, 10, 10, 12)
        delay(5)
        cls
    end for
    for changey : 1 .. 50
        y -= 1
        Draw.FillOval(x, y, 10, 10, 12)
        delay(5)
        cls
    end for
end for


Im doing the same code 4 times, but it changes the position of the ball, so even when it repeats the same code it will put the ball in a different spot
BangBangMario




PostPosted: Sun Jan 05, 2014 12:39 pm   Post subject: Re: Grade 10 Student Needs Help!!!

I dont think she taught us that... on the assignment sheet she wrote that we have to use loops though
Sponsor
Sponsor
Sponsor
sponsor
Raknarg




PostPosted: Sun Jan 05, 2014 7:09 pm   Post subject: RE:Grade 10 Student Needs Help!!!

Realistically it shouldnt matter how you solve it. In fact if you solve a problem in a way she was not expecting, that should be bonus marks for you. It shows creative thinking or initiative.

This is using loops though.
Tony




PostPosted: Sun Jan 05, 2014 7:37 pm   Post subject: Re: RE:Grade 10 Student Needs Help!!!

Raknarg @ Sun Jan 05, 2014 7:09 pm wrote:
Realistically it shouldnt matter how you solve it. In fact if you solve a problem in a way she was not expecting, that should be bonus marks for you. It shows creative thinking or initiative.

Ideally, yes. It depends on the teacher and the assignment though. Sometimes the assignment is to practice a specific approach. Other times the teacher just has a checklist to mark with.

Raknarg @ Sun Jan 05, 2014 7:09 pm wrote:

This is using loops though.

Depending on the answers above, some might distinguish between loop and for-loop (yes, for-loop is just a special case of the generic loop). Sometimes students just have to recognize what the teacher's particular style of marking is.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
BangBangMario




PostPosted: Sun Jan 05, 2014 8:36 pm   Post subject: Re: Grade 10 Student Needs Help!!!

Tony is right, my teacher actually does use a checklists and give 1 to 5 marks for each thing i have... she just wants to see if i do it correctly and doest really care what it looks like... and also we only discussed basic loops nothing more complex soo i just want to see if it possible to do it with basic loops
Raknarg




PostPosted: Sun Jan 05, 2014 9:13 pm   Post subject: RE:Grade 10 Student Needs Help!!!

Good point. I was spoiled with a good teacher
BangBangMario




PostPosted: Tue Jan 14, 2014 8:41 pm   Post subject: Re: Grade 10 Student Needs Help!!!

GUys my assignment is due friday, im freaking out.... i need to learn how to make a clickable menu


alsoo the menu option have to lead us to one of 3 animations (the users choice)... out of those animations im having trouble with one
we need to have cars racing across the screen but each time they have to move at a different speed.... im sooo stuck here
i have the other 2 animations done and the teachers find them the best out of all so far but please help mee
Raknarg




PostPosted: Tue Jan 14, 2014 9:40 pm   Post subject: RE:Grade 10 Student Needs Help!!!

You can either look up the Turing GUI module which has buttons, or I can teach you how to use the buttons that I made.

Are you familiar with the GUI module?

Or does someone know a tutorial on here for it?
Nathan4102




PostPosted: Tue Jan 14, 2014 10:03 pm   Post subject: RE:Grade 10 Student Needs Help!!!

Theres lots of tutorials here for GUI stuff: http://compsci.ca/v3/viewtopic.php?t=8808
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 3  [ 36 Posts ]
Goto page Previous  1, 2, 3  Next
Jump to:   


Style:  
Search: