Assignment

Pages: 12
no , case does not matter for this assignment
BTW, lines 21-25 are not calling functions. Those look like function declarations.
Notice that this:

(questions != 'a' && questions != 'b' && questions != 'c' && questions != 'd')

could be expressed more cleanly as:

(questions < 'a' || questions > 'd')
It's worse than being clean. The former will always be evaluated as false.
Oops, I was mistaken.

Since the user can still enter uppercase letters, you should convert their input to lowercase.
Last edited on
The former will always be evaluated as false.

Actually, it will only be false when the user inputs something valid.
Topic archived. No new replies allowed.
Pages: 12