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

Email Address Creation: A company named Creative Engineering develops email addr

ID: 3762297 • Letter: E

Question

Email Address Creation: A company named Creative Engineering develops email addresses for their employees by using the first 5 digits of their last name (or all digits if less than 5), the first digit of their first name, and the last 3 digits of their EmployeeID, followed by “@creative.com”. Write a c++ program that will prompt the user to enter his/her last name, first name, and their EmployeeID. The program should then display their email address.

Input Output

Last Name: Stephens   Your email address is StephC321@creative.com
First Name: Clarence
EmployeeID: 7654321

Explanation / Answer

#include<iostream.h>

# include<conio.h>

void main()

{ char lastname="xxx";

char firstname="abc";

char temp[];

char qemp[];

int p[];

int employeeID[10];

cin>> firstname>>lastname;

for(int i=-;i<10;1++)

{cin>>employeeID[i];

}

for( i=0;i<5;i++)

     str.copy(temp,lastname[i]); //first 5 elements of array of lastname

str.copy(quemp,firstname[0]);// first element of array of firstname

the

for(i=length-2;i>=length;i++) //here length is 10

{ p= EmployeeID[i]; // last 3 elements of the employeeID array being stored in integer array p

}

cout<<" the mail address is"<<temp <<:" " <<quemp<<" "<<

for(i=0;i<10;i++)

{ cout<<p[i]; integer array with 3 elements is being displayed

}

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