Please use code tags when posting code.
How far have you got with this new function?
Have you got the function prototype yet?
Do you know how to define a variable?
Do you know how to output a message?
Do you know how to get data in?
Do you know how to compare that data with the appropriate character constants and set the defined variable accordingly?
Do you know how to return a value?
There's not much more to it than that (if anything) so post what you've got when you're stuck and we can let you know what to do next.
Where did you put the do-while loop and why do you think continueOK() needs one?