Question: #include #include #include #include using namespace std; int main() { string fullname (John William Jones); cout < < fullname; string firstname, lastname, middlename; /* Part
#include#include #include #include using namespace std; int main() { string fullname ("John William Jones"); cout << fullname; string firstname, lastname, middlename; /* Part 1. Using the string functions separate the first middle and last name from the fullname variable into the variables firstname, middlename and lastname. Print the first middle and last names on separate lines*/ string string1 ( "This is a string of characters for the optional quiz"); string string2; /* Part 2. Using the string functions remove all the blanks in string1 and and save the compressed string into a variable string2 and print the string2 on a new line. */ cout << " Optional Quiz" << endl; return 0; }
Please complete in a way it can be copied and pasted to c++ codeblocks and show an image of the program being ran please
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
