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 (i.e. choice), initialized to -1(i.e., INVALID)
d. Write a loop to continue while variable choice is equal to -1(i.e.,
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 0 and 1, inclusive; if not, set variable choice
equal to -1(i.e., INVALID)
e. Return variable choice

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!