please see photo below Write a program that contains three functions: printLine(
ID: 3540294 • Letter: P
Question
please see photo below
Explanation / Answer
/* SAMPLE OUTPUT
****************************************************
****************************************************
****************************************************
****************************************************
Happy Birthday to you.
Happy Birthday to you.
Happy Birthday, dear aswani.
Happy Birthday to you.
****************************************************
****************************************************
****************************************************
****************************************************
*/
#include<iostream>
using namespace std;
void printLine()
{
for(int i=0; i<2; i++)
cout << "****************************************************"<<endl;
}
void printSentence()
{
cout << "Happy Birthday to you. "<< endl;
}
string getName()
{
string name;
cin >> name;
return name;
}
int main()
{
printLine();
printLine();
printSentence();
printSentence();
cout << "Happy Birthday, dear " << getName() << "." << endl;
printSentence();
printLine();
printLine();
return 0;
}