Question: Write a C program that uses functions to print a banner. You must write 2 functions using the prototypes given below in main to print

Write a C program that uses functions to print a banner. You must write 2 functions using the prototypes given below in main to print the banner.

Function 1:

prototype: void printStars (int n);

Description: This function prints a line of n stars(*)

prototype: void printExclaims(int n);

Description: This function prints a line of n/2 exclamation marks(!) each ! followed by a space as shown in the output below.

Hint: main must have 6 function calls

Sample input:

Enter a number: 50

Enter your first name: Abdi

Output:

***************************************************

! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !

***************************************************

welcome to week 7 lab Abdi

***************************************************

! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !

****************************************************

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!