Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

16.24 LAB 8D: Name format Overview Create a program that will format a person's name. name Objective Use string methods and branching to manipulate strings.

image text in transcribed
image text in transcribed
16.24 LAB 8D: Name format Overview Create a program that will format a person's name. name Objective Use string methods and branching to manipulate strings. Description Many documents use a specific format for a person's name. Write a program to format the name as follows: . If the input is firstName middleName lastName then the output is lastName, firstName middleinitial. . If the input has the form firstName lastName then the output is lastName, firstName If the input has any other form, then the output should be the input does not have the correct form Ex: If the input is: Enter a name: Pat Silly Doe the output is: Formatted Name: Doe, Pat s. Ex: If the input is: Enter a name: Julia Clark the output is: Formatted Name: Clark, Julia Ex: If the input is: Ex: If the input is: Enter a name: Julia Sue Ann Clark the output is: The input does not have the correct form ACTIVITY 16.24.1: LAB 8D: Name format 0/30 main.py Load default template. 1 user_input-input("Enter a nane: ") 2 * Type your code here. " Develop mode Submit mode Run your program as often as you'd like, before submitting for grading Below, type any needed input values in the first box, then click Run program and observe the program's output in the second box Predefine program input (optional) If you'd like to predefine your inputs, provide them here

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_2

Step: 3

blur-text-image_3

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

Big Data Fundamentals Concepts, Drivers & Techniques

Authors: Thomas Erl, Wajid Khattak, Paul Buhler

1st Edition

0134291204, 9780134291208

More Books

Students also viewed these Databases questions