1

I have looked in my grade book and I received a 1 for pset0 and a .39 for pset1.

Is a 1 the highest score you can get? I thought the psets were graded on a 1-5 scale?

For the mario exercise I got a 0 for each of the following areas:

handles a height of 0 correctly

handles a height of 1 correctly

handles a height of 2 correctly

handles a height of 23 correctly

rejects a height of 24

For the greedy project I got a 0 for each of the following areas:

input of 0.41 yields output of 4

input of 0.01 yields output of 1

input of 0.15 yields output of 2

input of 1.6 yields output of 7

input of 23 yields output of 92

input of 4.2 yields output of 18

I'm not sure why I got zeros because in each of the above cases, the program works. Mario prints the correct pyramid and greedy produces the correct number of coins. I even have the program print out how many quarters, dimes, nickles, and pennies to verify the number. The correct number of coins is the last print out just like the instructions say. I also did not copy anyone's code.

Where can I get some feed back as to why I'm getting these scores?

Thank you.

edited to add: Hello, I did run the check50. Here is the output:

:) mario.c exists
:) mario.c compiles
:) rejects a height of -1
:( handles a height of 0 correctly
   \ expected an exit code of 0, not output of "Height entered: 0.\nYou have entered an..."
:( handles a height of 1 correctly
   \ expected output, but not "\n##\n"
:( handles a height of 2 correctly
   \ expected output, but not "\n ##\n###\n"
:( handles a height of 23 correctly
   \ expected output, but not "\n                      ##\n           ..."
:( rejects a height of 24
   \ expected output, but not "\n                      ##\n           ..."
:) rejects a non-numeric height of "foo"
:) rejects a non-numeric height of ""

So what do the unhappy faces mean? The program works and prints out the pyramid. How should I interpret this? Thanks

2

Problem sets are graded on a scale of 0 to 1 (0 to 100%), based on the number of checks vs the number you passed. You need at least 0.6 (60%) on each pset in order to qualify for the certificate.

The only feedback you will receive is from check50 that you can run in the appliance to check your work before submitting.

Did you run check50 on your mario and greedy code? Your grade is based entirely on that.

You mention

I even have the program print out how many quarters, dimes, nickles, and pennies to verify the number.

That will cause check50 to fail as the spec says to return only the total number of coins on its own line. If you print anything else, check50 will not expect it and will fail the test with a red :(

To answer your specific problems in mario:

Height:0 is a valid response. Spec says "non-negative integer" and 0 fits that criteria, so you should simply print a pyramid of 0 height.

:( handles a height of 1 correctly
\ expected output, but not "\n##\n"

Did you run the staff version? If so, you would notice that the pyramid starts printing on the very first line of the output. It appears that you are print a newline character first, so your pyramid is one line too high. That will affect all the rest of the height tests as well.

Keep in mind that the psets are all auto-graded (no person is looking at them), so you must follow the specs exactly.

| improve this answer | |
  • Hello, I did run the check50. Here is the output: – Chess Dad Jul 20 '14 at 22:39
  • I'll remove the other printf stmts. The instructions were not clear. I did print the total on it's own line. The instructions never said you couldn't have any other printf stmts. I'll try your suggestion. Thank you. – Chess Dad Jul 20 '14 at 22:48
  • I've updated my answer to address your mario issues as well. – curiouskiwi Jul 20 '14 at 22:49
  • Thank you. I removed the added printf stmts and checkcs50 is not happy (and so am I). Where do I go to mark this question as answered? – Chess Dad Jul 20 '14 at 22:58
  • There should be an arrow next to my answer that you can click up? And a tickmark that you can click to turn green. Glad I could help. :) – curiouskiwi Jul 20 '14 at 22:59
0

I did run the check50. Here is the output:

:) mario.c exists

:) mario.c compiles

:) rejects a height of -1

:( handles a height of 0 correctly

\ expected an exit code of 0, not output of "Height entered: 0.\nYou have entered an..."

:( handles a height of 1 correctly

\ expected output, but not "\n##\n"

:( handles a height of 2 correctly

\ expected output, but not "\n ##\n###\n"

:( handles a height of 23 correctly

\ expected output, but not "\n ##\n ..."

:( rejects a height of 24

\ expected output, but not "\n ##\n ..."

:) rejects a non-numeric height of "foo"

:) rejects a non-numeric height of ""

So what do the unhappy faces mean? The program works and prints out the pyramid. How should I interpret this? Thanks

| improve this answer | |
  • best to update your original question with this rather than post it as an answer. I've done that for you. – curiouskiwi Jul 20 '14 at 22:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .