/pset2

problem sets from week 2 of CS50

Primary LanguageC

pset2

problem sets from week 2 of CS50

readability.c

given a text will calculate the level of readability based on Coleman-Liau index.
e.g.:

./readability
Text: Congratulations! Today is your day. You're off to Great Places! You're off and away!
Grade 3

caesar.c

Takes a number N and a text and prints the text encrypted with a ROT(N) system.
e.g.:

./caesar 1
plaintext: hello
ciphertext: ifmmp

substitution.c

Given a susbtitution cipher and a text, prints the text encrypted with the substitution cipher.
e.g.:

./substitution YTNSHKVEFXRBAUQZCLWDMIPGJO
plaintext: HELLO
ciphertext: EHBBQ