Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 6 Online
OpenStudy (anonymous):

for ps2 (first part): Is there something I'm missing? I feel like I'm having to write a much longer, much more drawn out equation than the first two problem sets... Just want to make sure I'm on the right track. Also, anyone know if the recitations are online? I could use a little few more pointers along the way...maybe to deflect some of the beating that keeps coming my way. :)

OpenStudy (anonymous):

First, just write a program that takes a number and figures out if you can buy it. My solution to just that task had 3 nested loops (one for each of a, b, and c). Don't worry about finding multiple unbuyable numbers or anything like that yet. I doubt the recitations are online, but I don't know that for a fact. Remember that there are readings, too.

OpenStudy (anonymous):

As dmancine pointed out, you are better off working on a smaller version of your problem first, rather than tackling the whole problem at once. You will be sure that, even if not optimally designed, your code is on the right path if it gains layers of problem solving, so to speak, instead of writing a chunk of code that you are unsure whether is the right approach or not. As another tip, you can paste your code on codepad and then link it to us, and we will try our best to help you :-)

OpenStudy (anonymous):

Right on, thanks guys. I just need to plug away at it more. It seems like as I try different things I end up (through reeeealll loose process of elimination...[read 'stumble upon'] finding a process that works. I started with a loop but real quick felt that it was trying to capture too much...even just working on the 6a variable... I'm going to hit it hard tomorrow and let you know how I do.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!