List Assignment, Python Programming

Assignment Help:
Task
This problem creates a list containing names. The list of names will be printed, sorted, printed again in the new sorted order, written to a new output file, and searched. Carefully read chapter 8 to find examples of the techniques and functions you need to solve this problem. You must design your solution using these 4 sub-functions:

1) Input the names from the data file names.txt (which is located in the Homework 8 folder in D2L) into a list and return the list to main.
2) Print the names one per line and single-spaced. Call this function (twice) passing the list of names to it for printing before and after they are sorted (do the sorting in main).
3) Pass the sorted list of names to a function which writes the list to a new output file (use a name different than the input file’s name) with one name per line.
4) Pass the sorted list of names to a function which asks the user to enter a name and then indicate whether the name entered is found in the list or not. If the name is found in the list, its position (i.e. index) is also printed.

The data file for this program contains 30 names each with the format Last, First. This value is to be processed as one, not separately. The user enters the search name in this same format as one string (i.e. not separately as Last and First names) unless your program is coded to concatenate them appropriately. Use Notepad to look at (and print) the test data file names.txt.

When testing your program, use the last and first names in the list along with one in the middle. Also test for one not in the list. Open the new output file with Notepad to verify that it contains the sorted list of names, one per line.

For 5 extra credit points, create a loop so the user can enter additional names to be searched for without having to rerun the entire program (show this loop in the logic diagram and include it in your program).

Submit each of the following in electronic format following class standards inside a compressed folder using the D2L drop boxes for Homework 8.

Use the logic diagrams drop box to submit:
1. A hierarchy chart drawn with MS-Visio. (2 points)
2. Program flowcharts drawn with MS-Visio showing your logical solution. (9 points)

Use the program drop box to submit:
3. A Python program implementing the solution shown in your logic diagrams. (14 points)

Related Discussions:- List Assignment

Programming embedded systems-programming models, Programming models Ju...

Programming models Just  as there  are several methods for organizing entire  software systems, there  are  different strategies for formally expressing computational processe

Programs and data , Programs and Data Object-oriented programming is a...

Programs and Data Object-oriented programming is a popular way  of managing programs, which  groups together data  with  the procedures that  works on them,  thus  facilitatin

#Connect4, In English, specify a representation of the board game in Python...

In English, specify a representation of the board game in Python. The representation should capture the entire state of the game at one point in time. It may be helpful to first fi

Non-local references, Non-local references So far, whenever we needed ...

Non-local references So far, whenever we needed to compute a variable, there  was  a binding for that  variable in the 'local' environment (the environment in which  we were e

Program requests password to display information of author, Write a program...

Write a program that requests a password after the author/program information is displayed. Make the password "hello". The program should then ask the user for their name: if the n

Packages and Libraries, For this assignment, you need to create a program t...

For this assignment, you need to create a program that allows the user to do basic trigonometry functions. First, ask the user if he or she would like to do sine, cosine, or tangen

Van der waals equation of state, how to make a python programme for van der...

how to make a python programme for van der waals equation of state with surface discontinouty

Data wrangling, http://www.expertsmind.com/questions/data-wrangling-3011642...

http://www.expertsmind.com/questions/data-wrangling-301164244.aspx

Question, Data array A has data series from 1,000,000 to 1 with step size 1...

Data array A has data series from 1,000,000 to 1 with step size 1, which is in perfect decreasing order. Data array B has data series from 1 to 1,000,000, which is in random order.

Python programming, Suppose the cover price of a book is $24.95, but bookst...

Suppose the cover price of a book is $24.95, but bookstores get a 40% discount. Shipping costs $3 for the first copy and 75 cents for each additional copy. What is the total whol

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd