Question: USE PYTHON 4 . 3 PLSS Purpose: Practice extracting and using data from a tabular file. Degree of Difficulty: Moderate For this question, your task

USE PYTHON 4.3 PLSS Purpose: Practice extracting and using data from a tabular file. Degree of Difficulty: Moderate For this question, your task is to draw a map of Saskatchewan that visually conveys information abo size and location of each town or city. The program you write here is NOT an interactive program, won't need to functions like setup() or draw(). To accomplish this, we've provided you with a map of Saskatchewan to use as a background and inf tion about each town/city in a tabular data file popdata.txt. This file contains population data fort Saskatchewan municipalities, one per line. Each line contains the following information delimited by cal bars (the l character) in this order: Municipality's name Municipality's X-coordinate on the map image Municipality's y coordinate on the map image Municipality's 2016 census population Here is how your program should behave Use a 658 x 600 pixel canvas (to match the map images dimensions) Use sk map.png as the canvas background (use Processing 's loadImage and image () function Municipality's y-coordinate on the map image Municipality's 2016 census population Here is how your program should behave: Use a 658 x 600 pixel canvas (to match the map image's dimensions) Use sk_map.png as the canvas background (use Processing's loadImage () and image() function do this. Google the documentation!) Draws a circular marker for every municipality listed in popdata.txt. except the capital city, as follo Its centre is located at the (x,y) position from the file The color and size of the circle should depend on the population in that municipality: * green and diameter 5 if the population is less than 5,000* red and diameter 10 if the population is between 5,000 and 20,000* red and diameter 15 if the population is greater than 20,000 Have black text immediately above the marker that displays the city's name Draws a square marker for the capital city. Regina, at the location listed in popdata.txt. The cap city marker should be in yellow and have a width and height of 15. You may find it helpful to use rectMode() function here Creates a legend in the top right corner to help interpret the map. See the sample image below an example Mikadon Cake Legend - Town 25,000 City 8000-20,000 City 20.000 Capital city Loyoningben Prince Albert North Satilaford Malta Wampan Saskatoon Datoe Rosetown Yorkion Fort Qu'Appelle Moosehaw Regina Swin murnar whitewood Aserba Menu Cadyle Estown.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!