Example of populationdata.txt: Big Cities: Los Angeles, 382000000 San Diego,136000000 Small Towns: Long Beach, 362000 Irvine, 302000 Detroit, 606000 Specifications • You should submit a single file called M9A1.py • It should follow the submission standards outlined here: Submission Standards • Your program must declare an empty dictionary named population_dict. • Your program must populate population_dict within a while loop using the input() function to collect input from the user. • Your program must use print() statements to write to a file in the same directory named populationdata.txt. • You are not required to use try/exeception. Tips and Tricks • There are multiple ways to do this assignment. If you break it down into pieces you'll be fine. Hard-Coded Nothing is hard-coded for this file.
Example of populationdata.txt: Big Cities: Los Angeles, 382000000 San Diego,136000000 Small Towns: Long Beach, 362000 Irvine, 302000 Detroit, 606000 Specifications • You should submit a single file called M9A1.py • It should follow the submission standards outlined here: Submission Standards • Your program must declare an empty dictionary named population_dict. • Your program must populate population_dict within a while loop using the input() function to collect input from the user. • Your program must use print() statements to write to a file in the same directory named populationdata.txt. • You are not required to use try/exeception. Tips and Tricks • There are multiple ways to do this assignment. If you break it down into pieces you'll be fine. Hard-Coded Nothing is hard-coded for this file.
Chapter8: Arrays
Section: Chapter Questions
Problem 9PE
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 3 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT