Quote:is it correct?
That is part of your task: testing and debugging.
So try it.
Give it each valid menu option, and make sure that works.
Give it invalid menu options, and make sure that it handles them gracefully.
Then for each valid menu option try it with a range of values - valid and invalid, and make sure that valid ones give the right results, and invalid ones are detected.
When it doesn't, debug it to find out why, and fix it. Then start testing again from the beginning.
But ... it will fail the first test, as you forgot some of the specification.
Testing against the spec will show you that.