subject

Submit a program that outputs 26 coordinates listed in order, closest-to-farthest (physically on the Cartesian Plane) from a single input origin. Please use this list of labeled coordinates in a file called "coordinates. json": [
{"id":"a","value":"31,49"},
{"id":"b","value":"44,67"},
{"id":"c","value":"93,6"},
{"id":"d","value":"20,16"},
{"id":"e","value":"68,53"},
{"id":"f","value":"71,8"},
{"id":"g","value":"61,90"},
{"id":"h","value":"34,97"},
{"id":"i","value":"21,63"},
{"id":"j","value":"19,84"},
{"id":"k","value":"0,81"},
{"id":"l","value":"6,76"},
{"id":"m","value":"43,64"},
{"id":"n","value":"18,64"},
{"id":"o","value":"10,61"},
{"id":"p","value":"37,27"},
{"id":"q","value":"44,88"},
{"id":"r","value":"75,63"},
{"id":"s","value":"99,46"},
{"id":"t","value":"28,51"},
{"id":"u","value":"88,79"},
{"id":"v","value":"47,21"},
{"id":"w","value":"18,66"},
{"id":"x","value":"84,100"},
{"id":"y","value":"75,92"},
{"id":"z","value":"32,33"}
]
Create a program that will take in a single x and y coordinate as the origin. After the input is provided, the output should be all of the coordinates (all 26 coordinates read from the "coordinates. json" file), in order of closest-to-farthest from the origin.
So, if the origin is (6,33), then the first item in the output would be the coordinate closest to (6,33), then the second closest, then third closest, and so on for all 26 input coordinates.
The origin should vary; do not hardcode a static origin. Also, the coordinates must be sourced from "coordinates. json".

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 18:00
Kyle wants to access his school’s home page. how can he do this?
Answers: 1
question
Computers and Technology, 22.06.2019 11:00
When building customer relationships through email what should you not do? question 2 options: utilize proper grammar, spelling, and punctuation type in all capital letters use hyperlinks rather than attachments respond to all emails within 24 hours
Answers: 1
question
Computers and Technology, 23.06.2019 08:30
Helen's credit card has an apr of 15.32% and a grace period of 17 days and helen pays her balance in the full every month. if her last billing cycle ended on september 26, 2009, and she made her payment on october 11, 2009, did she owe any interest on her last statement's balance?
Answers: 3
question
Computers and Technology, 23.06.2019 21:00
Alcohol’s affects on the cornea and lens of the eye make it more difficult
Answers: 1
You know the right answer?
Submit a program that outputs 26 coordinates listed in order, closest-to-farthest (physically on the...
Questions
Questions on the website: 13722367