Question: Write function displayMenu to do the following a . Return type int b . Empty parameter list c . Declare a variable, data type integer,
Write function displayMenu to do the following
a Return type int
b Empty parameter list
c Declare a variable, data type integer, to store the users menu
selection ie choice initialized to ie INVALID
d Write a loop to continue while variable choice is equal to ie
INVALID
i Write a series of printf statements to display the OS
Management Menu
ii Prompt the user to enter their menu selection, store the input
in variable choice
iii. Use decision making logic to validate the users input is
between values and inclusive; if not, set variable choice
equal to ie INVALID
e Return variable choice
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
