Question: C program. Write a console program to print different patterns of border lines based on user choices. int borderlinesMenu (char *pattern) Based on the function

 C program. Write a console program to print different patterns ofborder lines based on user choices. int borderlinesMenu (char *pattern) Based on

C program.

Write a console program to print different patterns of border lines based on user choices. int borderlinesMenu (char *pattern) Based on the function prototype above, implement the borderLineMenu() function that accepts a parameter of type character for the borderline pattern and returns an integer value for the length of the border line to be printed. In this function, user will select a border line pattern from the menu and enter the length for the border line he/she wish to print out. Print out the borderline in the main () function according to the pattern and length specified in the borderlinesMenu () function. Your program output should be similar to the sample as illustrated in Figure-2 below. [hits: function call by reference allows a function to return multiple values] SAMPLE OUTPUT: How many border lines do you wish to draw? 3 / ==Border Lines Patterns=== 1. ********** 2. 3. %%%%% 4. @@@@@@@@@@ 5. Quit Please choose a pattern: 4 Please enter the length of border line: 20 Border Line 1: @@@@@@@ @@@@@@@@@@@@@@@@@@@@ ==Border Lines Patterns=== 1. ********** 2. =: 3. %%%%% 4. @@@@@@@@@@ 5. Quit Please choose a pattern: 1 Please enter the length of border line: 16 Border Line 2: ***** ==Border Lines Patterns=== 1. ********** 2. 3. %%%%% 4. @@@@@@@@@@ 5. Quit Please choose a pattern: 3 Please enter the length of border line: 10 Border Line 3: %%%%% %%%

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!