Question: Please write a C++ program based on the instructions below. Thank you! Write a C++ program that can create four different patterns of different sizes.

Please write a C++ program based on the instructions below. Thank you!

Please write a C++ program based on the instructions below. Thank you!Write a C++ program that can create four different patterns of different

Write a C++ program that can create four different patterns of different sizes. The size of each pattern specifies the number of columns or rows. For example, a pattern of size 5 has five columns and 5 rows. The four patterns are made of characters and a digit, which shows the size. The size must be between 2 and 15. Since we cannot represent the decimal values 10-15 with a single digit, we will use lowercase hexadecimal digits as shown in the table below: Decimal Hexadecimal Decimal Hexadecimal 10 13 14 15 6 The following table shows the four patterns in size 5: Pattern 1 Pattern 2 Pattern 3 Pattern 4 ***55 *555 *5555 55*** 555** 5555* *5 Your program will display a menu and ask the user to choose a pattern and size. But note that it must be robust; it must permit the user to choose an option only between 1 and 5, and a pattern size only between 2 and 15. The program should continue displaying the menu and processing user selections until the user chooses to quit. Requirements Demonstrate at least one while loop, one for loop, and one do..while loop. Choose the most appropriate loop for the task. Your program must consist of a main function and at least four other functions named pattern_one, pattern_two, pattern_three, and patternfour

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!