Question: Implement a function in C + + named getMenuChoice that takes a single parameter unsigned int maxChoice . Inside the function, repeatedly prompt the user
Implement a function in C named getMenuChoice that takes a single parameter unsigned int maxChoice Inside the function, repeatedly prompt the user for input until a valid choice is entered. Check that the input is within the range of through maxChoice, inclusive. Once valid input is obtained, return it Do not handle clearing the screen or printing menu options inside the function. It is also okay to assume that maxChoice is in the proper range. Leave the error messaging to be handled outside of the function. Do not make any changes to the function signature.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
