subject

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 fuctionality. Be sure to use these powerful data structures you studied this week when creating your code. Requirements for this project include multiple files.
 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.
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:
https://www. crestcapital. com/tax/us_states_and_capitals
https://statesymbolsusa. org/categories/flower
https://worldpopulationreview. com/states/state-capitals/
You will need to embed the State data into your Python code in 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.
a. https://matplotlib. org/tutorials/introductory/pyplot. html
b. https://matplotlib. org/tutorials/introductory/images. html#sphx-glr-tutorialsintroductory -images-py
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:
python -m pip install -U matplotlib
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.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:00
Problems: 1. using textbooks, reference books, and internet as your source of research, draw the following microprocessor microarchitectures i. intel 8086 ii. motorola 68000 i atmel atmega32 iv. mips single cycle v. arm cortex-m3 write an hdl module for a hexadecimal seven-segment display decoder. the input is 4-bit binary representing a hex number (0-f), and the output is 8-bit seven segment display bits (a-h). thus, the decoder must handle the digits 10 - 15 to display a-f respectively, in addition to 0-9 numbers. 2. design a 4-bit left and right rotator (both outputs). first sketch schematic diagrams of your design. then implement your design using hdl coding. 3. 4. design a modified priority encoder that receives an 8-bit input, a7: 0 and produces a 3-bit output, y2o. y indicates the most significant bit of the input that is true. y should be 0 if none of the inputs are true. give a simplified boolean equation, sketch a schematic, and write an hdl code. 5.write an 8: 1 multiplexer module called mux8 with selection inputs s, data input d, and data output y. data input (d) and data output (v) are 32-bit wide
Answers: 3
question
Computers and Technology, 22.06.2019 08:00
Digital information is stored using a series of ones and zeros. computers are digital machines because they can only read information as on or off –1 or 0. this method of computation is known as the system
Answers: 1
question
Computers and Technology, 23.06.2019 03:30
How can you repin an image on your pinterest pin board a. click on the "repin" button b. click on the "add pin" button c. click on the "upload a pin" button d. click on the "save pin" button.
Answers: 2
question
Computers and Technology, 23.06.2019 07:50
Apython programming question: assume s is a string of lower case characters. write a program that prints the number of times the string 'bob' occurs in s. for example, if s = 'azcbobobegghakl', then your program should print number of times bob occurs is: 2
Answers: 3
You know the right answer?
Overview: In this week, you have studied additional Python language syntax including Lists, Sequence...
Questions
question
Mathematics, 10.03.2020 17:30
Questions on the website: 13722362