0

[hid code behind edit link per academic honesty rules]

  • check50 2016.caesar caesar.c
  • :) caesar.c exists
  • :) caesar.c compiles
  • :( encrypts "a" as "b" using 1 as key
  • \ expected output, not a prompt for input
  • :( encrypts "barfoo" as "yxocll" using 23 as key
  • \ expected output, not a prompt for input
  • :( encrypts "BARFOO" as "EDUIRR" using 3 as key
  • \ expected output, not a prompt for input
  • :( encrypts "BaRFoo" as "FeVJss" using 4 as key
  • \ expected output, not a prompt for input
  • :( encrypts "barfoo" as "onesbb" using 65 as key
  • \ expected output, not a prompt for input
  • :( encrypts "world, say hello!" as "iadxp, emk tqxxa!" using 12 as key
  • \ expected output, not a prompt for input
  • :) handles lack of argv[1]

this error is not going anywhere. any suggestions please. thank you

2 Answers 2

5

The specifications say that you must print a prompt:

Your program must output plaintext: (without a newline) and then prompt the user for a string of plaintext (using get_string).

Your program must output ciphertext: (without a newline) followed by the plaintext’s corresponding ciphertext, with each alphabetical character in the plaintext "rotated" by k positions; non-alphabetical characters should be outputted unchanged.

check50 is complaining that it is expecting output (the prompt) but you aren't doing that.

0

Not sure what the problem is. I've tested the code and it works fine.

Possible problems are:

1) You might be editing one version of the file and running another. Perhaps you made changes and didn't save the changed file before recompiling. Perhaps you are editing one version and running another version in a different directory.

2) Sometimes, the IDE gets squirly. It is possible that while you think you have saved the changed file, the changes aren't actually getting saved. Running the make file seems to make an updated version, but in actuality, it recompiles the old version. One way to check this is to close all editor tabs in the IDE and then reopen the caesar.c file. If the old version is there, you have your answer. The quickest way to fix it is to log out of the IDE, close the browser, and log back in.

Beyond that, I'm out of ideas.

If this answers your question, please click on the check mark to accept. Let's keep up on forum maintenance. ;-)

2
  • i tried doing what you said but no luck clearing the error message
    – Steve
    Jan 4, 2017 at 15:59
  • @cliff, the specs have changed for 2017.
    – curiouskiwi
    Jan 4, 2017 at 21:48

You must log in to answer this question.

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