Answered step by step
Verified Expert Solution
Link Copied!

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: image text in transcribedimage text in transcribed

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 ShowMenu

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual Basic6 Database Programming

Authors: John W. Fronckowiak, David J. Helda

1st Edition

0764532545, 978-0764532542

More Books

Students also viewed these Databases questions

Question

Evaluate the value of exp ( 2 z + 3 npi )

Answered: 1 week ago