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, 22.06.2019 10:00
Businesses allocate resources for their best and most productive uses. the more a resource, the more costly it will be. a manufacturer that requires scarce and costly resources is likely to charge for its products.
Answers: 2
question
Computers and Technology, 22.06.2019 13:30
Write lines of verse that rhyme to remember the following information: acid rain is a type of air pollution caused by chemicals in the air.
Answers: 1
question
Computers and Technology, 22.06.2019 18:30
All of the following are characteristics that must be contained in any knowledge representation scheme except
Answers: 3
question
Computers and Technology, 22.06.2019 18:40
Mariah was working on a multimedia presentation that included both video and audio files. the file was huge, and she wanted to send it to her coworker in another office. she needed to reduce the size of the file so that it could be transmitted faster. the utility she used to do this was
Answers: 2
You know the right answer?
Submit a program that outputs 26 coordinates listed in order, closest-to-farthest (physically on the...
Questions
question
Spanish, 12.02.2021 22:00
question
Mathematics, 12.02.2021 22:00
Questions on the website: 13722363