Strings

  1. Write a program to input both your Given and Family names from the keyboard to a single string variable. Use a loop to step through the characters in the variable to change all the letters to lower case. The output should look something like this:
    Enter your name (first then last) then press enter
            Name: quincy SHNORKS
            Name: quincy shnorks
    
  2. Add code to your program to process the string variable holding your name to alter the name to have initial capitals. Also output the initials.
    Enter your name (first then last) then press enter
            Name: quincy SHNORKS
            Name: Quincy Shnorks
            Initials: Q S
    
Hints: