Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started