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 05:30
The total revenues for a company are $150,223 and the total expenses were 125,766. if you are calculating the net income, which of these spreadsheets would you use? insert a spreadsheet with $150,223 in cell b2 and 125, 766 in cell b3. enter a formula =b2-b3. the formula should be showing in the formula bar. insert a spreadsheet with $150,223 in cell b2 and 125, 766 in cell b3. enter a formula =b2+b3. the formula should be showing in the formula bar. insert a spreadsheet with $150,223 in cell b2 and 125, 766 in cell b3. enter a formula =b2/b3. the formula should be showing in the formula bar. insert a spreadsheet with $150,223 in cell b2 and 125, 766 in cell b3. enter a formula =b2*b3. the formula should be showing in the formula bar.
Answers: 3
question
Computers and Technology, 22.06.2019 18:30
If an improvement creates no significant change in a product’s performance, then it is a(n) ? a0 design improvement. (there are no answer choices)
Answers: 1
question
Computers and Technology, 23.06.2019 01:00
Petrică, tânăr licean în clasa a ix-a, a primit în dar de la părinţii săi un cont bancar pentru micile sale cheltuieli curente. el este pasionat de internet banking şi îşi verifică cu grijă toate tranzacţiile efectuate. pentru creşterea securităţii tranzacţiilor online, banca îi furnizează lui petrică un număr pe care el va trebui să îl modifice, obţinând un număr tan – număr de autentificare a tranzacţiei (transaction authentication number). regula de obţinere a numărului tan este următoarea: se formează cel mai mic număr par din toate cifrele numărului furnizat de bancă. cerinţă cunoscând numărul n furnizat de bancă, să se determine numărul tan obţinut de petrică. date de intrare fişierul tan.in conţine pe prima linie numărul natural n cu semnificaţia din enunţ. date de ieşire fişierul de ieşire tan.out va conţine o singură linie pe care va fi scris numărul tan cerut. restricţii • 0 < n < 18*1018 • n are cel puţin o cifră pară • numărul tan obţinut nu poate conţine zerouri nesemnificative
Answers: 2
question
Computers and Technology, 23.06.2019 02:00
What is the main benefit of minimizing the ribbon in word? more options will be accessible through customized keystrokes. more of the document will be viewable without needing to scroll. fewer controls will be accessible to the user by using the mouse. fewer editing options will be available without entering a password.
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: 13722359