Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using C++ function to write a program. requirements show below: Function 1 Name it ShowMenu. The menu should display the following: Choose your favorite color
Using C++ function to write a program. requirements show below:
Function 1 Name it ShowMenu. The menu should display the following: Choose your favorite color from the following: A. Red B. Green C. Blue D. Yellow E. Plaid A, B, C, D, or E, please Put the menu in a do while loop to force the user to enter A, B, C, D, or E After the loop while still in the ShowMenu function, pass the choice into the next function, named TellMeYourColor. The statement might look something like: TellMeYour Color (choice); This assumes you named your char variable choice in the ShowMenu function. Function 2 Name it TellMeYourColor. It will have a char parameter. This function will simply tell which color the user chose from the ShowMenu function. (Highly conducive to a switch structure.) If you want to try to use the lolower or toupper functions, you'll need to include the cctype header. This is not a requirement! Before int main, have the following two function prototypes: void ShowMenuStep 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