Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Mobile Communications

Authors: Jochen Schiller

2nd edition

978-0321123817, 321123816, 978-8131724262

More Books

Students also viewed these Programming questions