Computer Science Canada

no execution

Author:  C0RE [ Thu Sep 14, 2006 9:40 am ]
Post subject:  no execution

hey im puttin this before any of my code

code:
var randn : int
loop
    randint (randn, 5, 10)
end loop


it doesnt seem to want to open my execution window

my whole code right now looks like this

code:
var choice : int

var randn : int
loop
    randint (randn, 5, 10)
end loop

    put "Welcome To The Random Number Game!"
    put ""
    put " Please Guess What The Random Number Is Between ( 5 - 10 )"
    get choice

Author:  do_pete [ Thu Sep 14, 2006 10:06 am ]
Post subject: 

That's because you're not printing/drawing anything on the screen with
code:
var randn : int
loop
    randint (randn, 5, 10)
end loop

Author:  Cervantes [ Thu Sep 14, 2006 10:15 am ]
Post subject: 

The execution window is only opened when the first output is reached. You never output anything with this program, so the window never opens. True, you have put lines, but they are never reached because you've got an infinite loop before them.

I'd also like to say that using Rand.Int is much preferred to using randint. The latter shouldn't even be in the library.

Author:  NikG [ Thu Sep 14, 2006 2:38 pm ]
Post subject: 

So to fix your problem, remove the "loop" and "end loop"

Author:  C0RE [ Fri Sep 15, 2006 9:10 am ]
Post subject: 

kk thx

Author:  CyberGeek [ Mon Oct 02, 2006 9:22 am ]
Post subject: 

Greetings,

I am just curious. Is it ethical to help a student like this doing school work? IMO I dont think so. I think students should have to learn by them selves or with the aid of "Help Files" Wink or other students. Not those who are at Waterloo.

This is just my own opinion.

Author:  Tony [ Mon Oct 02, 2006 11:39 am ]
Post subject: 

it's a sensative issue. We generally enforce our strict 'no homework assignments' rules, but then again sending students to 'the help files' is kind of pointless in most cases.

As a guideline we do not solve the problems/assignments (do not provide working code), but point to ether where the error is coming from and/or link to a helpful resource (function name, tutorial, etc).

Author:  CyberGeek [ Mon Oct 02, 2006 1:47 pm ]
Post subject: 

Great! Very Happy I think I will fit in here great then.

I am a student, but I am a Software Consultant and Developer as a career at the moment, and always will be! Very Happy

Thanks for the clarification Tony. The only reason I posted that above was because I am expecting C0RE is a student in one of my Software Development Courses, grade 11 class, although I am grade 12 but that doesnt matter, anywho, I just want him to learn appropriately and not get exact answers on what is wrong, etc. because I do not consider that learning. Now, perhaps, learning by your self, that would be different. Very Happy

Thank-you again. Very Happy
Hope I really can help out a lot here with people who need help with various things! Smile

Author:  C0RE [ Mon Oct 02, 2006 11:07 pm ]
Post subject: 

just to point out, this problem was fixed without using this website so there was no rules broken so theres no big deal needed...

Author:  CyberGeek [ Tue Oct 03, 2006 6:50 am ]
Post subject: 

Greetings,

C0RE - I do not care if you use this website for IDEAS only. Don't take source code or get exact help here with your Comp. Sci. class. This will not get you learning the concepts. Wink

Author:  As0k [ Tue Oct 03, 2006 2:08 pm ]
Post subject: 

just curious what source code did i take?

Author:  Cervantes [ Tue Oct 03, 2006 5:26 pm ]
Post subject: 

CyberGeek wrote:
Greetings,

I am just curious. Is it ethical to help a student like this doing school work? IMO I dont think so. I think students should have to learn by them selves or with the aid of "Help Files" Wink or other students. Not those who are at Waterloo.

This is just my own opinion.

The fundamental goal of schooling is for the student to learn. Though most of the learning comes in school, some of it comes from outside. This is an example of such outside learning.

I completely agree that providing excess help to students for assignments is a bad idea, because with CS assignemnts, most of the learning comes from the hard work itself. And of course there's plagiarism.

In conclusion, there's a fine but important line between teaching the student and doing the work for the student.

Author:  As0k [ Tue Oct 03, 2006 7:39 pm ]
Post subject: 

i agree with Cervantes, i asked the question so i know in the future. And like i said this problem was fixed in the code before any reply was even posted.

Author:  r.3volved [ Tue Oct 03, 2006 10:35 pm ]
Post subject: 

awww, so no one wants to write my DirectX game for me by December!?
lol
bah...I hate video games so much
I'd much rather write a rootkit that hooks into the DirectX runtime library for my directX class, or at least something useful

Author:  CyberGeek [ Wed Oct 04, 2006 6:18 am ]
Post subject: 

Cervantes wrote:
CyberGeek wrote:
Greetings,

I am just curious. Is it ethical to help a student like this doing school work? IMO I dont think so. I think students should have to learn by them selves or with the aid of "Help Files" Wink or other students. Not those who are at Waterloo.

This is just my own opinion.

The fundamental goal of schooling is for the student to learn. Though most of the learning comes in school, some of it comes from outside. This is an example of such outside learning.

I completely agree that providing excess help to students for assignments is a bad idea, because with CS assignemnts, most of the learning comes from the hard work itself. And of course there's plagiarism.

In conclusion, there's a fine but important line between teaching the student and doing the work for the student.


I agree with you. Although, when you said a lot of learning comes from school. Well, that is not alwasy 100% true. I am a student and also I am the President of CyberGeek's Software Solutions. We are a Software Consulting and Development company. Now, after saying that, everything that all my CS teachers have taught in school, I have learnt everything by my self / outside of school. I have been using computers ever since I could sit on my father's lap without him holding me. Very Happy

Author:  Tony [ Wed Oct 04, 2006 10:52 am ]
Post subject: 

teaching is about getting students to ask the right questions, and possibly pointing them to the proper Wikipedia article Laughing

It's quite a disappoitment that the education degrades to 'study to pass a test' as oppose to 'study to learn'. I bet there are kids out there who could get amazing SAT (and such standardized tests) scores, and yet not really know much, just how to fill out the 'correct' bubbles.

Author:  CyberGeek [ Wed Oct 04, 2006 1:06 pm ]
Post subject: 

I agree with you 100% Tony.

Author:  As0k [ Thu Oct 05, 2006 6:22 pm ]
Post subject: 

anyways all im gonna say is i didnt use this help during school the problem i posted was resolved by myself without the help of this post so thx for everyone taking their time and replying to my post even though i fixed the problem.

Author:  NikG [ Fri Oct 06, 2006 1:28 pm ]
Post subject: 

As0k, it's great that you fixed the problem on your own. that's the best way to learn.

the lesson you can take from this, then, is if in the future you have a problem, take a little time to try and solve it yourself before posting it here or elsewhere.
you'll find that you'll be able to figure out a lot of your probs on your own, and you'll learn faster that way.


: