Menu

[Solved]Due Wed Apr 24 2019 11 59 Pm Assignment Id Ola9 Assignment Type Project Bonus Required Fil Q37256192

31,2966,1686,5926,7378,7335,8235,5491,1889,825,3520,8977,5056,391,8223,2967,1540,2995,1830,8055,889,3578,4911,7077,9352,244,7168,4999,523,3231,615,863,3570,9289,7095,6093,1692,217,6023,241,7346,932,7731,4213,119,5095,4424,6358,516,8687,379,2114,7245,2956,5651,9671,1011,1361,15,2986,9129,6229,993,8981,1314,7868,3436,501,2224,5134,9639,7946,1945,3018,8990,4016,4674,432,6959,235,6535,358,2831,246,851,255,2121,2166,6417,8255,597,1889,683,8443,8385,6129,7425,7481,5116,167,5724,297,1031,8639,1650,3952,9994,8752,7297,3449,395,4444,6052,5130,5049,3573,507,2675,6370,9368,2276,751,5341,6448,1094,9685,5463,2621,6258,4924,1985,3043,7911,6727,172,2840,6786,898,6070,5432,9710,817,5223,952,9054,1546,631,7738,5987,3192,1264,4186,6934,8642,8248,749,2520,2412,3831,3277,3145,674,7911,2721,88100,267,888,489,9151,976,513,4466,9534,7559,748,6621,8781,5867,1979,9417,6872,2267,2351,4219,8695,8765,6187,509,1567,4350,96100,6447,4564,2620,242,1564,8746,2427,9698,2113,3052,3799,7840,6674,8060,4724,539,4754,2292,5045,5162,935,647,611,9772,2019,3943,2550,6890,7284,3767,9788,8211,5717,7866,7811,9119,1671,379,3552,6460,1793,4147,6449,1130,5099,699,2895,8787,4356,3148,3366,9789,2718,2310,1020,4984,8989,6125,1850,816,5248,937,6927,3359,3841,3847,9686,9562,531,6885,913,8031,1923,10051,1612,2551,6492,8062,8429,3688,9096,2197,3792,2419,9787,4765,3148,8311,9527,4248,8470,105,2427,5116,9675,4375,86,9432,8756,733,6178,8832,3316,195,754,2278,5164,38,1130,2142,9917,5221,2481,9145,4016,67100,8922,7495,5147,3311,6316,276,4520,8259,4030,1636,5779,6399,8380,5585,8748,5033,7695,298,275,6219,7996,8780,7924,3415,3031,8597,5718,558,3263,59100,4011,4396,6751,9021,6026,5865,1290,1798,3093,9584,3558,8562,548,9226,8355,8275,3713,3355,1633,2136,4420,5687,4847,4990,3267,574,6643,1615,3117,167,3519,4794,8584,1360,6148,8270,7950,953,757,2273,2860,5148,4353,5182,5792,402,5424,9899,4771,8398,7421,806,3968,5499,480,219,6529,670,4376,1314,836,3782,478,8097,4991,4198,5495,9224,6380,261,8972,3617,5934,9629,2397,5577,8671,4692,4217,311,1815,519,5487,4848,437,7942,2835,8737,4991,8692,814,2362,6258,9175,4225,5972,8464,8816,6961,9047,3572,9180,9945,8613,3178,775,6722,4225,5497,3534,2886,861,1788,542,4469,26100,4546,9973,538,2366,1939,4540,5164,484,587,4944,3712,8980,5435,3768,6087,223,826,9714,1065,5327,1037,5417,8076,4923,9128,251,221,3952,5423,2937,518,2016,3123,4577,3980,716,249,271,6371,9667,3518,7126,3758,5169,6647,3056,6961,7347,4281,1288,2098,4744,8580,4060,9370,845,2314,387,528,4953,9181,5368,9449,85,792,8946,772,5348,5771,2296,5131,45100,9148,542,7584,3314,8042,1085,9064,8041,529,6776,5089,240,5211,1093,181,1129,778,7969,994,316,2417,5690,318,8954,3985,9075,1764,3476,9218,1421,5064,9915,4572,469,9513,7726,434,3788,6735,5451,5756,4911,2941,290,1283,5967,6356,7834,5589,5866,9951,4287,3920,2250,6655,2942,5245,2952,1792,2119,611,4183,1974,942,269,338,9268,2279,147,2834,720,2474,1233,1356,6225,1565,8593,213,9699,6350,7278,8779,5787,4742,8250,3547,3671,2186,8469,8797,9391,6125,7974,5069,5954,5191,6892,961,544,323,418,7885,228,6918,3948,6566,7023,3783,8338,142,424,4117,9126,1495,523,8930,4674,8477,3232,998,7589,1426,3657,712,4791,572,7114,235,2920,2021,4576,10080,376,7746,8486,2625,1483,7085,6255,6257,2914,1866,3647,9057,1984,5142,364,5378,3043,1775,2096,6755,2371,2054,2860,2824,4554,3914,4382,9723,8624,1933,7425,2099,3222,2950,705,1721,8032,7448,3380,7094,2215,5160,753,631,7394,9922,1654,2112,1847,2011,8047,6036,3047,3767,7264,2141,3816,9659,336,8584,787,8027,10045,6382,356,2856,6846,704,7631,9573,2147,9635,4062,1534,2888,9661,3690,4769,376,747,4187,628,9628,5529,591,9342,219,7229,1415,4223,1480,2963,3154,6756,9431,584,691,1958,794,9223,9487,460,224,4880,328,206,836,8334,7958,8624,7520,5334,4132,8842,8494,1798,2896,2459,145,6879,953,7348,5743,9767,8362,4344,3164,8593,5579,5352,5686,842,7037,526,6148,128,2029,4889,1734,6225,4910,2166,5672,371,345,2736,1837,1482,7189,9086,3432,7275,7993,4962,1883,7135,6276,6551,2789,5326,8075,7487,5510,5144,2274,7376,1814,5468,3954,1382,6586,3311,3148,14100,9926,401,9110,1926,5148,6968,9943,5926,2620,5819,3474,5934,7614,941,881,5591,7986,1084,537,5150,8224,5859,4243,9489,1446,9253,8433,9862,7946,5475,8918,2869,213,9883,3130,8587,7649,9073,9414,568,2318,3357,2034,4018,6759,6778,233,989,3442,1785,2214,8628,2991,2852,1591,4254,4475,4095,4538,7942,2358,10031,234,398,7582,493,7375,1858,9724,9340,45100,464,1268,8798,342,2824,7455,611,7238,436,6148,3732,5738,52100,7429,8364,5355,7981,69,8341,5649,8963,5688,4457,3486,752,4575,1949,2027,3096,9390,3581,4892,9464,1698,5250,8687,698,190,5914,9464,2047,2429,6713,882,1133,3010,6276,7313,6685,16100,6424,5888,242,5591,8327,5385,1829,9952,9693,5586,6873,2639,8712,9718,7768,9637,874,5369,6051,3613,5867,9638,4817,4585,8332,9195,3557,3727,1095,3979,5654,3884,525,3652,1854,3445,136,6974,2682,8088,4595,1538,279,5375,327,1987,1421,9781,59Due: Wed Apr 24, 2019 by 11:59 PM Assignment id: ola9 Assignment type: Project (Bonus) Required Files: ola9.py, ola9.pdf, myo2 of 4 Points within Circle 60 20 20 40 60 80 100 axis Remember to never change, or share, the default password for your clasplease use python
ido not have a sample code to begin with.Due: Wed Apr 24, 2019 by 11:59 PM Assignment id: ola9 Assignment type: Project (Bonus) Required Files: ola9.py, ola9.pdf, myout.log Lab description: You must write a Python program that asks the user for a (x, y) center point and radius. You will then use this information to determine how many of the plotted points are contained within this circle. If the points are within the circle you must change them to the color blue. Otherwise, the plotted points are to remain the color red. You will then output the results to screen. The points you must plot will come from 1 file named xy_pts.txt. The items in this file are comma separated with the x-coordinate being the first item and the y-coordinate being the second item. Sample Output: Enter centerx-coordinate: 15 Enter center y-coordinate: 25 Enter center radius: 10 There are 47 points in this circle Sample Plot Below 2 of 4 Points within Circle 60 20 20 40 60 80 100 axis Remember to never change, or share, the default password for your class account f you have a problem getting into to your class account, please see the instructor or Lab GTA. You must submit your project via handin using your class account. Do not submit via email. You must observe the following requirements in designing and developing your program: . You will create a function named get data that takes a file name as a parameter and returms a 2-dimensional list containing the data from file xy pts.txt You must have a function that accepts 5 parameters: center x and y coordinates, x and y coordinates from the plotted data, and the . radius. The function will return True if the data point is within the circle and False otherwise Note: a point is in a circle if (xp-xc)”2 + (yp-yc)”2 <宀2 where xp and yp are data points; xc and yc are center points; and r is the radius. * . You will plot data points and determine which points are contained within the circle by iterating through the 2D list of data containing the points from file xy_pts.tt. Use the file on the course website the user given center point and radius). all of them name ola9.pdf (one file with all the plots) . You will print the number of points contained within the cirde (using . You must save your plots of each run and create a pdf file containing . You may not use any global variables Show transcribed image text Due: Wed Apr 24, 2019 by 11:59 PM Assignment id: ola9 Assignment type: Project (Bonus) Required Files: ola9.py, ola9.pdf, myout.log Lab description: You must write a Python program that asks the user for a (x, y) center point and radius. You will then use this information to determine how many of the plotted points are contained within this circle. If the points are within the circle you must change them to the color blue. Otherwise, the plotted points are to remain the color red. You will then output the results to screen. The points you must plot will come from 1 file named xy_pts.txt. The items in this file are comma separated with the x-coordinate being the first item and the y-coordinate being the second item. Sample Output: Enter centerx-coordinate: 15 Enter center y-coordinate: 25 Enter center radius: 10 There are 47 points in this circle Sample Plot Below
2 of 4 Points within Circle 60 20 20 40 60 80 100 axis Remember to never change, or share, the default password for your class account f you have a problem getting into to your class account, please see the instructor or Lab GTA. You must submit your project via handin using your class account. Do not submit via email. You must observe the following requirements in designing and developing your program: . You will create a function named get data that takes a file name as a parameter and returms a 2-dimensional list containing the data from file xy pts.txt You must have a function that accepts 5 parameters: center x and y coordinates, x and y coordinates from the plotted data, and the . radius. The function will return True if the data point is within the circle and False otherwise Note: a point is in a circle if (xp-xc)”2 + (yp-yc)”2

Expert Answer


Answer to Due: Wed Apr 24, 2019 by 11:59 PM Assignment id: ola9 Assignment type: Project (Bonus) Required Files: ola9.py, ola9.pdf… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *