Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a Python program that: Allows the user to enter a person's first name and last name. The user should be able to enter as

Create a Python program that:

  • Allows the user to enter a person's first name and last name.
  • The user should be able to enter as many names as they desire.
  • Create a function that takes the first name and last name, puts them together with the last name first, followed by the first name; with the names separated by commas.
  • Take the result from the function, and place the resulting name in a list.
  • Once the user finishes entering names, sort the contents of the list.
  • Write the sorted names from a list into a text file. When you create the text file, allow the user to enter a name for the file to be created.
  • After you finish writing names to the file, close the file and end the program.

The program should:

  • Use variables with meaningful names
  • Display easily understood prompts when collecting user input
  • Prompt the user for the name of the file to save the data in
  • Have appropriate comments indicating what each part of the program is doing
  • Have a comment area at the beginning of the program identifying the author of the program and the class it was created for

PLEASE SURE MAKE SURE THE CODE HAS NO ERRORS. THANK YOU!

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

Database Programming With Visual Basic .NET

Authors: Carsten Thomsen

2nd Edition

1590590325, 978-1590590324

More Books

Students also viewed these Databases questions

Question

How many Tables Will Base HCMSs typically have? Why?

Answered: 1 week ago

Question

What is the process of normalization?

Answered: 1 week ago