I'm having difficulties figuring out this block of code.
I want to have the user input A, S, or, Y as the status code, and if incorrect
to loop and display an error message until it's correct. Once correct, I want it to display a message stating it's valid, and from there moving on. Here's what I have.
You'll need to make use of an if statement at the beginning of your do loop. Otherwise, it will display the error message even before you've entered anything.