Question: a program that inputs a student's name in the following form: lastName, firstName middleName. The program will convert the name to the following form: firstName

a program that inputs a student's name in the following form: lastName, firstName middleName.

The program will convert the name to the following form: firstName middleName lastName.

Your programmust read the student's entire name in one variableandmust consist of a user-defined functionthat takes as input a string, consisting of a student's name, and returns the string consisting of the altered name.

You can use the string function find to find the index of ,(the comma); the function lengthto find the length of the string; and the function substrto extract the firstName, middleName, and lastName.

please send me copy code format and ALSO share with me google drive link of this.

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 Programming Questions!