0

I've tested all the possibilities where check50 says my code isn't working as intended and I always get the expected result.

I can't seem to figure out what I did wrong.

Here's check50:

:) caesar.c exists.
:) caesar.c compiles.
:( encrypts "a" as "b" using 1 as key
    expected "ciphertext: b\...", not "ciphertext: b ..."
:( encrypts "barfoo" as "yxocll" using 23 as key
    expected "ciphertext: yx...", not "ciphertext: yx..."
:( encrypts "BARFOO" as "EDUIRR" using 3 as key
    expected "ciphertext: ED...", not "ciphertext: ED..."
:( encrypts "BaRFoo" as "FeVJss" using 4 as key
    expected "ciphertext: Fe...", not "ciphertext: Fe..."
:( encrypts "barfoo" as "onesbb" using 65 as key
    expected "ciphertext: on...", not "ciphertext: on..."
:( encrypts "world, say hello!" as "iadxp, emk tqxxa!" using 12 as key
    expected "ciphertext: ia...", not "ciphertext: ia..."
:) handles lack of argv[1]

and here's my code:

[EDIT: Code removed for Honor Code Compliance]

0

The code tested ok, both locally and by check50. Are you sure that you're submitting the correct version of the code to check50, or is it possible that you're submitting an earlier version?

You must log in to answer this question.

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