Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a complete C++ program to meet the following specifications: User enters t

ID: 2314570 • Letter: W

Question

Write a complete C++ program to meet the following specifications: User enters the first name and last name (Please note not the full name) For example if the first name is Mary then it will be repeated four times If the last name is Jones then it will be repeated five times The full name will be repeated 8 time but the user will not enter the full name The input should like as shown below: Please enter your first name: Mary Please enter your last name: Jones The output will be Mary Mary Mary Mary Jones Jones Jones Jones Jones Mary Jones Mary Jones Mary Jones Mary Jones Mary Jones Mary Jones Mary Jones Mary Jones

Explanation / Answer

#include<iostream.h>
#include<conio.h>

void main()
{
clrscr();
int i;

for(i=1;i<=4;++i)
cout<<“Your First Name”<<“n”;
getch();
}

{
clrscr();
int i;

for(i=1;i<=5;++i)
cout<<“Your Second Name”<<“n”;
getch();
}

{
clrscr();
int i;

for(i=1;i<=4;++i)
cout<<“Your Full Name”<<“n”;
getch();
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote