Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need some help with C++ im using The Atom program 4. String Manipulation. a) Create three string variables: firstname, and lastname b) Ask user

I need some help with C++ im using The Atom program
image text in transcribed
4. String Manipulation. a) Create three string variables: firstname, and lastname b) Ask user to enter the firstname and lastname. c) Concatenate the values of firs in the middle and store in the third variable fullname. (such a "John Smith") d) Output the variable fullname to the console. e) Output the length of the fullname variable. f) Ask user to enter middle initial, and store in middle variable. tname and lasname with a space g) Use string functions to insert a middle initial into the full name variable including spaces (such as "John H Smith"). g) Output the updated fullname variable h) Finally output the initial of the full name (such as J.H.s.) Example Output (input in bold italics Enter your first name: John Enter your last name: Smith Your full name is John Smith Length: 10 Enter your middle initial: H Your full name is John H Smith Your Initials name is J.H.S

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

Database Design Using Entity Relationship Diagrams

Authors: Sikha Saha Bagui, Richard Walsh Earp

3rd Edition

103201718X, 978-1032017181

More Books

Students also viewed these Databases questions

Question

What is the effect of word war second?

Answered: 1 week ago

Question

7. Understand the challenges of multilingualism.

Answered: 1 week ago

Question

5. Give examples of variations in contextual rules.

Answered: 1 week ago