Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

we need to calculate the calories burned during a bike route using Python 3. Her

ID: 3532664 • Letter: W

Question

we need to calculate the calories burned during a bike route using Python 3. Here is the data.


Man weight 170lb

Bike weight 40lb

cart   weight 35lb

constant speed of 6mph


link to physics forces on rider

http://analyticcycling.com/ForcesPower_Page.html  


He wants us to read in a csv file with the route that has the elevation of the bike rider and the distance per point. Here is a sample of the file: maybe you can copy and paste it save it as a csv file.



1. He wants us to make a program in Python3 that will read in the file. (problem im having is there is more data in the file than we need to do the problem.)


2. we need to be able to use the file and data available to make a program that will output to an animated graph y axis being elevation and x axis being distance. he wants like a bike on the animate graph , and maybe a calorie counter/ticker in the top corner showing as the bike is going on the route how many calories are being used/burned.


3. maybe have some of the city names labled on the graph as the bike travels along the animated graph



latitude longitude elevation segment dist total distance 45.54429 -112.334948 4628.08 0 0 0 45.54423 -112.330999 4631.36 0.1913 0.19 0 45.538038 -112.330828 4631.36 0.4283 0.61 286 45.532748 -112.327995 4641.2 0.3907 1.01 286 45.525953 -112.319326 4664.16 0.6303 1.64 0 45.518677 -112.306623 4693.68 0.7951 2.43 0 45.51573 -112.301044 4719.92 0.3386 2.77 0 45.505685 -112.289028 4756 0.9066 3.68 0 45.500993 -112.278471 4795.36 0.6059 4.28 0 45.493593 -112.256498 4854.4 1.1818 5.46 0 45.486072 -112.23341 4988.88 1.2344 6.7 0 45.480957 -112.218733 5093.84 0.7948 7.49 0 45.474216 -112.210493 5100.4 0.614 8.11 0 45.46001 -112.197361 5110.24 1.171 9.28 0 45.452183 -112.195387 5113.52 0.5497 9.83 286 45.444476 -112.18955 5116.8 0.6036 10.43 286 45.435262 -112.182169 5097.12 0.731 11.16 286 45.421046 -112.17041 5093.84 1.1369 12.3 286 45.411466 -112.162256 5041.36 0.7718 13.07 286 45.402789 -112.155046 5018.4 0.6948 13.77 286 45.39399 -112.147236 5002 0.7171 14.48 286 45.384888 -112.139168 5005.28 0.7415 15.23 286 45.375966 -112.131529 5018.4 0.7201 15.95 286 45.3668 -112.124062 5044.64 0.7304 16.68 286 45.357996 -112.120457 5047.92 0.6336 17.31 286 45.347742 -112.114706 5070.88 0.7623 18.07 286 45.341046 -112.114105 5080.72 0.464 18.54 286 45.326625 -112.108269 5113.52 1.037 19.57 286 45.322341 -112.105865 5120.08 0.3185 19.89 286 45.320228 -112.097197 5143.04 0.4461 20.34 0 45.320047 -112.078915 5182.4 0.8892 21.23 0 45.320168 -112.060633 5244.72 0.8891 22.12 0 45.318901 -112.045269 5336.56 0.7523 22.87 0 45.320228 -112.038231 5310.32 0.3543 23.22 0 45.323004 -112.031021 5392.32 0.3997 23.62 0 45.324091 -112.024927 5375.92 0.3057 23.93 0 45.326686 -112.016001 5405.44 0.4697 24.4 0 45.325841 -112.006559 5415.28 0.4628 24.86 0 45.323849 -111.999435 5412 0.3728 25.23 0 45.319323 -111.990423 5471.04 0.5386 25.77 0 45.318478 -111.985531 5497.28 0.2449 26.02 0 45.315823 -111.982784 5516.96 0.227 26.24 0 45.314495 -111.980639 5520.24 0.139 26.38 0 45.311356 -111.975489 5559.6 0.3314 26.72 0 45.309726 -111.972914 5579.28 0.1685 26.88 0 45.307976 -111.969738 5589.12 0.1962 27.08 0 45.305199 -111.964417 5621.92 0.3223 27.4 0 45.30369 -111.961069 5635.04 0.1934 27.6 0 45.30206 -111.957722 5661.28 0.198 27.79 0 45.299343 -111.954803 5671.12 0.2355 28.03 0 45.294875 -111.952057 5730.16 0.3366 28.37 286 45.293003 -111.948366 5756.4 0.2214 28.59 0 45.293547 -111.944075 5835.12 0.2121 28.8 0 45.294211 -111.940126 5844.96 0.1975 29 0 45.295117 -111.936693 5877.76 0.1784 29.18 0 45.295539 -111.935062 5949.92 0.0845 29.26 0 45.295781 -111.932659 5979.44 0.1181 29.38 0 45.295841 -111.929655 6012.24 0.1462 29.52 0 45.29566 -111.928282 6038.48 0.0679 29.59 0 45.2956 -111.925793 6087.68 0.1211 29.71 0 45.295056 -111.925106 6104.08 0.0503 29.76 0 45.293788 -111.924505 6127.04 0.0924 29.86 286 45.292339 -111.924849 6176.24 0.1016 29.96 286 45.290467 -111.924849 6225.44 0 29.96 286 45.288777 -111.925106 6268.08 0.1175 30.08 286 45.286784 -111.923647 6317.28 0.155 30.23 286 45.284972 -111.9209 6353.36 0.1832 30.41 0 45.283764 -111.917982 6441.92 0.1647 30.58 0 45.282375 -111.914635 6514.08 0.1891 30.77 0 45.281349 -111.911459 6537.04 0.17 30.94 0 45.28002 -111.907597 6632.16 0.2092 31.15 0 45.27996 -111.904764 6720.72 0.1379 31.28 0 45.280564 -111.902275 6766.64 0.1281 31.41 0 45.281953 -111.900816 6760.08 0.1194 31.53 0 45.282315 -111.898155 6815.84 0.1319 31.66 0 45.282496 -111.895494 6874.88 0.1301 31.79 0 45.284066 -111.891375 6920.8 0.2279 32.02 0 45.28781 -111.886654 6910.96 0.3461 32.37 0 45.291796 -111.881418 6901.12 0.3754 32.74 0 45.294332 -111.877213 6832.24 0.2695 33.01 0 45.296807 -111.874895 6760.08 0.205 33.22 0 45.299886 -111.87232 6697.76 0.247 33.47 57 45.302784 -111.867514 6619.04 0.3079 33.77 0 45.305018 -111.863308 6612.48 0.2564 34.03 0 45.307251 -111.859274 6560 0.2497 34.28 0 45.308942 -111.856184 6615.76 0.1904 34.47 0 45.311718 -111.854467 6507.52 0.2093 34.68 57 45.313469 -111.852579 6484.56 0.1519 34.83 0 45.3154 -111.850433 6435.36 0.1695 35 0 45.316849 -111.848631 6346.8 0.1331 35.13 0 45.317875 -111.846399 6304.16 0.1296 35.26 0 45.320047 -111.845112 6235.28 0.1627 35.43 57 45.321435 -111.843395 6195.92 0.1272 35.55 0 45.321254 -111.841249 6212.32 0.1051 35.66 0 45.319806 -111.838331 6140.16 0.1736 35.83 0 45.320349 -111.835499 6051.6 0.1427 35.98 0 45.32216 -111.832838 5986 0.1801 36.16 0 45.323186 -111.829662 5946.64 0.1699 36.33 0 45.321918 -111.825714 5864.64 0.211 36.54 0 45.319565 -111.821337 5792.48 0.2679 36.8 0 45.318599 -111.81859 5726.88 0.1493 36.95 0 45.317995 -111.812925 5671.12 0.2786 37.23 0 45.317271 -111.804943 5589.12 0.3914 37.62 0 45.317392 -111.79842 5497.28 0.3173 37.94 0 45.318297 -111.789837 5372.64 0.4221 38.36 0 45.318659 -111.783743 5310.32 0.2974 38.66 0 45.319565 -111.772413 5238.16 0.5545 39.22 0 45.320289 -111.762199 5205.36 0.4992 39.71 0 45.321254 -111.75868 5192.24 0.1836 39.9 0 45.322642 -111.75456 5123.36 0.2221 40.12 0 45.32403 -111.750269 5038.08 0.2297 40.35 0 45.32572 -111.745291 5011.84 0.2688 40.62 0 45.327832 -111.742115 5008.56 0.2125 40.83 0 45.330608 -111.741085 4998.72 0.1984 41.03 57 45.333926 -111.741085 4995.44 0 41.03 57 45.336702 -111.741085 4992.16 0 41.03 57 45.340865 -111.741085 4982.32 0 41.03 57 45.344786 -111.741085 4979.04 0 41.03 57 45.347139 -111.740742 4975.76 0.1636 41.19 57 45.348707 -111.739283 4969.2 0.1295 41.32 0 45.349129 -111.736193 4972.48 0.153 41.48 0 45.34931 -111.733103 4969.2 0.1507 41.63 0 45.348767 -111.728983 4946.24 0.2037 41.83 0 45.348767 -111.725206 4936.4 0 41.83 0 45.348044 -111.723232 4936.4 0.1082 41.94 0 45.346234 -111.721001 4942.96 0.1656 42.1 0 45.345812 -111.722031 4936.4 0.0579 42.16 229

Explanation / Answer

first of u U should be importing java.io.* and javax.swing.* Wait I am working on it....If I get late please rate me with 5 stars ...i will post the answer in comments........thanx