Above are the results of the code created in module. The assignment was a combination of writing new script and repairing pre-existing scrip. The first step was to create a list from name and print my last name only using its index number. Following last name you will see a series with the following pattern "X roles a # out of #, X wins" This was the pre-existing code that needed repairs. Once fixed it generates a random number between 0 and a number equal to double the number of characters in each persons name. If they role higher than the length of their name it tells you they won, otherwise it tells you they lose. Next, a list with 20 random numbers is created. Then a number of our choosing, I chose seven, is declared the unlucky number. If that number does not occur in the list it the script tells you so, if the number does occur in the list then all instances of the unlucky number are removed and the program tells you how many were removed. The final step is to print out the list of numbers after the unlucky number has been removed.
Because the data provided for the above map contained positive and negative values which ArcMap does not support for proportional symbols, the data had to be modified. All states with positive values were exported to a new shapefile and the same was done with states with negative values. This was all that needed done with the positive valued states. However, for the negative valued states a new field needed added to the attribute table and it had to be populated with the absolute value of number of jobs lost to convert them to positive integers. To prepare the data for bivariate visualization classes needed to be made. To do this, three class quantification was applied to each desired variable to divide each into three relatively equal groups. Then all values in the first group of the first variable were classified with an 'A', then the second group was given a 'B', and the third was given a 'C'. the same thing was done with the second variable however 1, 2 ,...

Comments
Post a Comment