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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started