Create and use functions as often as possible

Assignment Help Python Programming
Reference no: EM133432125

Overview: In this week, you have studied additional Python language syntax including Lists, Sequences, Dictionaries and Sets. The Lab for this week demonstrates your knowledge of this additional Python functionality. Be sure to use these powerful data structures you studied this week when creating your code.

Python Application for this Lab:
The first exercise produces a command line menu-driven python application providing users with the ability to search and display U.S. State Capital, population and Flowers. The second part documents your testing and pylint analysis results.

1. Python command line menu-driven application that allows a user to display, sort and update, as needed a List of U.S states containing the state capital, overall state population, and state flower. The Internet provides multiple references with these lists. For example:

You will need to embed the State data into your Python code in a data structure of your choice, from the readings this week. The user interface will allow the user to perform the following functions:
1. Display all U.S. States in Alphabetical order along with the Capital, State Population, and Flower
2. Search for a specific state and display the appropriate Capital name, State Population, and an image of the associated State Flower.
3. Provide a Bar graph of the top 5 populated States showing their overall population.
4. Update the overall state population for a specific state.
5. Exit the program

As before, generate an appropriate Welcome, prompt, and exit messages to help the user navigate the program.

The program should continue to allow selections until the program is exited.

If a state is not found an appropriate message should be displayed. Hints:
1. Use the List data structure and associated sort() and searching capabilities
2. Create and use functions as often as possible.
3. Validate input data to ensure each entry from the user is correct before proceeding.
4. Prompt the user to reenter information as needed.
5. The following Python sites are excellent resources for learning more about the Python libraries mentioned in the readings that you should use as part of this exercise.
6. Use comments to document your code
7. Test with many combinations.
8. Use pylint to verify the code style - the goal is a 10!
9. Before you import a third part library (e.g. matplotlib) )you must install it. To install a Third Party library, you use this command at the command prompt:

2. Document your testing results using your programming environment. You should also include and discuss your pylint results for the application. The test document should include a test table that includes the input values, the expected results and the actual results. A screen capture should be included that shows the actual test results of running each test case found in the test table. Be sure to include multiple test cases to provide full coverage for all code and for each function you develop and test.

Reference no: EM133432125

Questions Cloud

What does professionalism mean to you in words : What does professionalism mean to you in words? Is incivility common in the workplace? What might be its costs? In some job leads, it states: "no drama".
How can you use the principles in the settings you encounter : Identify a specific ethical standard; perhaps share a specific story in which you showed particularly excellent ethical decision making. Now, consider where
Why dogs are superior to cats, written by an avid dog-owner : An interview with a local pediatric doctor about the rate of flu among local infants An article about why dogs are superior to cats, written by an avid
How will you know the implementation and solution have been : How long will it take? How will you know the implementation and solution have been successful? Where will the solution be implemented?
Create and use functions as often as possible : SDEV 300 Building Secure Python Applications, University of Maryland, demonstrates your knowledge of this additional Python functionality
Causes and consequences of climate change : Examine the causes and consequences of climate change and assess contemporary mitigation efforts.
Explain why native populations and territory : Which of these was a myth used to explain why Native populations and territory declined during white western expansion?
What point did rome transform from republic to monarchy : At what point did Rome transform from a Republic to a Monarchy? What made this transformation effective, and why was it successful?
Scrutiny from political theorists and historians : Since its appearance in 1951, Arendt's theory of totalitarianism has undergone heavy scrutiny from political theorists and historians.

Reviews

len3432125

5/30/2023 10:32:24 PM

3. Validate input data to ensure each entry from the user is correct before proceeding. 4. Prompt the user to reenter information as needed. 5. Use comments to document your code 6. Test with many combinations. 7. Use pylint to verify the code style – the goal is a 10! Score of State Capital and Bird List,/ 90 Documentation 22.5 points Document your testing results using your programming environment. You should also include and discuss your pylint results for the application. The test document should include a test table that includes the input values, the expected results and the actual results. A screen capture should be included that shows the actual test results of running each test case found in the test table. Be sure to include multiple test cases to provide full coverage for all code and for each function you develop and test.

len3432125

5/30/2023 10:32:05 PM

1. Display all U.S. States in Alphabetical order along with the Capital, State Population, and Flower 2. Search for a specific state and display the appropriate Capital name, State Population, and an image of the associated State Flower. 3. Provide a Bar graph of the top 5 populated States showing their overall population. 4. Update the overall state population for a specific state. 5. Exit the program Generate an appropriate Welcome, prompt, and exit messages to help the user navigate the program. The program should continue to allow selections until the program is exited. If a state is not found an appropriate message should be displayed. Other Guidance 1. Use the List data structure and associated sort() and searching capabilities 2. Create and use functions as often as possible.

len3432125

5/30/2023 10:31:59 PM

I''m using PyCharm Submission requirements for this project include multiple files. (Zipping them into one file is acceptable and encouraged): ? Python State Capital and Flower List Application Code ? Word or PDF file containing your test and pylint results ? Flower image set – These images should be uploaded supporting the testing of your lab. 90 points Develop a Python command line menu-driven application that allows a user to display, sort and update, as needed a List of U.S states containing the state capital, overall state population, and state flower. The user interface will allow the user to perform the following functions:

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

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