Question: Write a C++ program that shows the following menu: Plattern Guess Qlquit If you select Porp, you should prompt the user to enter number of

 Write a C++ program that shows the following menu: Plattern Guess

Write a C++ program that shows the following menu: Plattern Guess Qlquit If you select "Porp", you should prompt the user to enter number of lines that he/she wishes to display, as well as the type of character to display. You must use only nested loops to the maximum extend possible and do not use any type of global variables to generate the output shown below. Your program should have the following format: Enter your choice: P You have selected the pattern option. Enter number of lines in the pattern: 6 Enter type of character to display: * *** ***** . If you select "Gorg", you should generate a random number between 0 and 100. The user should guess the number and based on the difference between the generated number and guessed number, you should prompt following messages: Too Big Too Small Close Very close You guessed it correctly. If the user selects or Q" then your program should terminate. IMPORTANT NOTES, PLEASE READ CAREFULLY: 1) Your source file MUST BE virus FREE (zero, "0" will be given if file is infected). 2) Your program MUST BE FULLY DOCUMENTED and COMMENTED 3) Include all of the necessary header files that make up your program. 4) Use meaningful prompt don't let the user to guess what to input to your program. 5) On the due date you must submit your program through Blackboard 6) Late programs are not accepted

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!