Question: Given a name in the format lastname, firstname where there is exactly one comma and exactly one space, transform the name into the format first_initial.

Given a name in the format lastname, firstname where there is exactly one comma and exactly one space, transform the name into the format first_initial. lastname where - first_inital and lastname are both capitalized - there is exactly one period and space following the first_initial (your program should include a function that does this, i.e. a function that takes two parameters (first name, last name) and returns the output that we want to print out) Examples: Name: smith, john J. Smith Name: BOND, JAMES J. Bond Name: XAviEr, chArLes C. Xavier Name: T, Mr M. T Name: antoinette, MARIE M. Antoinette

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!