Question: Write program that contains three functions:printLine(),printSentence() andgetName(). TheprintLinefunction uses thecoutobject to print two lines of **************************************************. ThegetNamefunction gets and returns a first name entered by

Write program that contains three functions:printLine(),printSentence() andgetName().

TheprintLinefunction uses thecoutobject to print two lines of "**************************************************".

ThegetNamefunction gets andreturnsa first name entered by the user.

Call these three functions in the main function to produce the following output:

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

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

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

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

Happy Birthday to you.

Happy Birthday to you.

Happy Birthday, dear .

Happy Birthday to you.

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

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

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

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

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 Programming Questions!