4.8 Lab Warmup: String Input and Formatting
The template reads a person’s first and last name into Stringvariables.
Edit the program template to:
Create the variables for a second person’s first and lastnames.
Read the second person’s first name and last name into the separatestring variables.
Assumptions: The first and last names contain no spaces and are nolonger than 12 characters each.
Then use printf to display the names, formatted exactly as follows,so the commas line up.
Since none of the last names will be longer than 12 characters,display 12 characters before the comma.
Hints:
Use the width specifier to line up the last names.
Use the precision specifier to
PayPal Gateway not configured
PayPal Gateway not configured