Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create a menu that offers 4 different print out options. The program should ask the user to choose an option and will print a message
Create a menu that offers 4 different print out options. The program should ask the user to choose an option and will print a message based on that input. Each options logic should be handled in another function(they can all be handled by the same function, but a call must be made to that function "after the selection is made). The program should continue asking the user for input after the option is finished until the user selects 5. That will exit the program. At least one function should accept arguments(parameters) and print there value to the user. The main function should contain a single function call and nothing else. An example of a menu would be: 1. Print out You chose option 1 2. Print out You chose option 2. 3. Print out You chose option 3. 4. Print out You chose option 4. 5. Exit stdlib.h contains a function for exiting a program. exit(1); /use this line to exit the program
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started