Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

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 Basic 4 Ole Database And Controls Superbible

Authors: Michael Hatmaker, C. Woody Butler, Ibrahim Malluf, Bill Potter

1st Edition

1571690077, 978-1571690074

More Books

Students also viewed these Databases questions