Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 towncity 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 Xcoordinate on the map image Municipality's y coordinate on the map image Municipality's census population Here is how your program should behave Use a x 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 ycoordinate on the map image Municipality's census population Here is how your program should behave: Use a x pixel canvas to match the map image's dimensions Use skmap.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 xy position from the file The color and size of the circle should depend on the population in that municipality: green and diameter if the population is less than red and diameter if the population is between and red and diameter if the population is greater than 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 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 City City 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started