Answer:
The solution code is written in Python:
Explanation:
Firstly, prompt user to enter name (Line 1).
Next, use the string split() method and use space " " as separator to split the input string into individual component, first name, middle name, last name and assign to variable first_name, middle_name and last_name (Line 5-7).
Display the output as required by the question.