This program should use cin.getline() method to allow a space to be entered as part of a name. This is covered in Section 10.3
Write a method that will have a single C++ string passed to it. This string that is passed will contain first-name space last-name.
This method needs to return a C++ string with the names in proper case. Proper case is the first character of the first and last name capitalized with the remaining characters in lowercase.
BILLY BOB returns Billy Bob
billy bob returns Billy Bob
Now to the extra rules.
1. A last name with a hyphen (‘-‘) will have the following letter capitalized. I.E. Mary Ford-Paul
2. A last name starting with O’ will have the following letter capitalized. I.E. O’Malley
3. A last name starting with “Mac” and also “Mc” will have the following letter capitalized. I.E. McDonald , MacIntosh
************
The program will prompt me to enter a first and last name (as a single input string). It will call the method to manipulate the string, and display the result. The program will loop until I choose to exit.