The following works, but I just don't know how to make that simpler. I guess I could just have - if staff_or_client is equal to S or s then do the following, else do the following, but that wouldn't work if someone typed in a random letter, it should really cause an error to be more precise.
This is just starting to look a bit elongated. Can anyone think of an easier way?
well you could use a switch statement instead of several ifs and elses, and you could also use the toupper() or tolower() functions and just convert the char to upper or lower case so you wouldn't have to check for 'S' and 's' for example