CS 32 - Project 4

<p>Anyone here in CS 32?</p>

<p>Just got back the project 4 grade and got murdered apparently, thought I had it right but I got zero's in all of the displaying correct numbers etc etc and NO comments were included! So now I have to guess where I lost all the points which i'm going to guess is the cs32grade function which I am fairly sure should be working right. GG CS32 GG! just needed to vent, thank you :)</p>

<p>hrmm.. did you download the test data by any chance?</p>

<p>Me too. I got zeroes for evaluating formulas though I'm pretty sure that they display the correct numbers. Do you know if I can ask for a regrade if I no longer have the cpp files?</p>

<p>They haven't posted any of the test data for the last two projects or the solutions, they were both done by nachenberg. I emailed smallberg asking if there was anything we could do to see what exactly we did wrong to get 0's for those sections so ill see if that happens. </p>

<p>I tested out my cs32grade function a couple minutes ago and it gets the correct values so I am not sure at all where I went wrong because when using the spreadsheet, everythings displaying the right stuff and evaluating correct etc, so this is really annoying
:(</p>

<p>is there any way to even request a regrade at this point or to request the reasons behind the score you got?</p>

<p>nvm I know what happened</p>

<p>can u please tell me what happened...? cause yeah... i got 0's also...
mine worked very well... i had formulas working PERFECTLY... even when cells were trying to access themselves, etc...</p>

<p>i have my original project still saved on my computer and it runs perfectly... i even tested that my cs32grade function is called properly... IT IS!!!</p>

<p>WOW... WAIT... ***... but if i take my cpp's and h's and make an empty project w/ them... my program has run time errors... how does this make any sense...? i am using the SAME EXACT source files but in the new project there are run-time errors...? IT WORKS PERFECTLY FINE IN MY ORIGINAL PROJECT!!</p>

<p>maybe i shud email someone? nachenberg?</p>

<p>


What kind of run-time errors are you getting? :rolleyes:</p>

<p>omg... ONE LINE OF CODE MISTAKE!
anyway... the error is "Run-Time Check Failure #3 - The variable 'negative' is being used without being initialized."</p>

<p>wow... actually... after reading that... it's right... i forgot to initialize that boolean variable... wow i could have caught that simple error if my original project gave it to me...
yeah it means my "excel" program doesn't work w/ positive numbers because it is only intialized if a number was negative ><... can't believe i never had problems in testing... makes no sense to me -_-... i guess it was luckily always false when i was testing with positve numbers... i still don't get why my original program didn't have this error message and still doesn't give it to me!!!</p>

<p>Yeah, Visual Studio's pretty generous when it comes to undefined behavior. I lost a few points on a homework once because of that.</p>

<p>for mine, when we were supposed to wait for the user to press enter, I checked for the character '\r' instead of '
', so I emailed smallberg (he was the one who told me I did it wrong this way) and he said I should be fine</p>

<p>I was told that I didn't called cs32grade correctly... I have no idea how they call the function though.</p>

<p>did you call it with the string that had all of the spaces before and after the result that was 16 characters long? or did you just call it with the result? that's all that I can thing of that might have happened.</p>

<p>I no longer have the cpp file, but I think I called it with the wrong string. I lost around 30 points because of this dumb mistake.</p>