Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using C++ . Please solve it right. .Do the following code for your English first name, last name. Do for your true name. I shall

Using C++ . Please solve it right. .Do the following code for your English first name, last name. Do for your true name. I shall check with your name from the TU system inshaAllah.

This code is given for my name, you do it for your name

Then give output

Sample code:

##include

#include

using namespace std;

int main(void)

{

char fn[20] = "Masud"; // give your true English first name here

char ln[20] = "Hasan"; // give your true English last name here

char fulln[50];

// copy all characters of fn to fulln

fulln[0] = fn[0];

fulln[1] = fn[1];

fulln[2] = fn[2];

fulln[3] = fn[3];

fulln[4] = fn[4];

fulln[5] = ' '; // give a gap

//copy all characters from ln to fulln

fulln[6] = ln[0];

fulln[7] = ln[1];

fulln[8] = ln[2];

fulln[9] = ln[3];

fulln[10] = ln[4];

fulln[11] = '\0'; // terminate

cout << "First Name: " << fn << " ";

cout << "Last Name: " << ln << " ";

cout << "Full Name: " << fulln; // output

}

Put your code here:

Put your screen picture here:

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

JDBC Database Programming With J2ee

Authors: Art Taylor

1st Edition

0130453234, 978-0130453235

More Books

Students also viewed these Databases questions

Question

Distinguish between poor and good positive and neutral messages.

Answered: 1 week ago

Question

Describe the four specific guidelines for using the direct plan.

Answered: 1 week ago