#C10148. Name Badge Formatter
Name Badge Formatter
Name Badge Formatter
You are given the names of several attendees. Each attendee's name is provided as two separate words representing the first name and the last name. Your task is to format each name such that only the first letter of each name is in uppercase and the rest of the letters are in lowercase.
In other words, if an attendee’s name is given as (first_name, last_name), then you should output it as: [ \text{Formatted Name} = \text{capitalize(first_name)} + " " + \text{capitalize(last_name)} ]
where (\text{capitalize}(s)) means converting the first character to uppercase and the remaining characters to lowercase.
The input is taken from standard input (stdin) and the output should be printed to standard output (stdout).
inputFormat
The first line of input contains a single integer (N) (where (N \ge 1)) representing the number of attendees. The following (N) lines each contain two space-separated strings corresponding to the first name and last name of an attendee.
outputFormat
Output (N) lines, each containing the formatted name of the attendee. Each name should have its first letter uppercase and all other letters in lowercase.## sample
3
alice SMITH
bOB jOnEs
CHARLIE Brown
Alice Smith
Bob Jones
Charlie Brown
</p>