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:30
Auniversity wants to install a client-server network. which feature do you think is important for them as they set up the network? sending email blocking multiple people to use the same file low security low set up cost limited access to files
Answers: 1
question
Computers and Technology, 22.06.2019 23:50
You need to design a circuit that implements the functions in the following table: s0 s1 function0 0 a + 10 1 a – b1 0 a + b1 1 a – 1s0 and s1 are 1-bit control inputs to select the function of the circuit. inputs a and b are 4-bitnumbers in 2s complement form. the output is also a 4-bit number in 2s complement form.you are allowed to use only one ttl 7483 4-bit adder to implement all the functions. but anynumber of other components (except the adder) can be used.hint: design a combinational logic circuit to modify the input b and the “carry input” of theadder depending on the control inputs s0 and s1.important: lab grade will depend on the working of the circuit & will be checked of by your labinstructor.1. is the output valid for the following input combinations: a. s0 = 0, s1 = 0, a = 7, b = 3? b. s0 = 0, s1 = 1, a = 7, b = 3? c. s0 = 1, s1 = 0, a = -4, b = -5? d. s0 = 1, s1 = 1, a = -8, b = 6? 2. what is the range of inputs (for both a and b) that will produce the valid output for all the functions?
Answers: 3
question
Computers and Technology, 23.06.2019 02:00
Arecipients list has been loaded into a document. which commands should be clicked in order to filter the list so that letters will not be printed for recipients who live in a certain state? mailings tab, start mail merge, select recipients, type new list, then insert only contacts from the desired states mailings tab, rules, select recipients, use existing list, then choose a recipients list that includes only contacts in certain states mailings tab, select recipients, use existing list, rules, fill in, then type in certain states mailings tab, rules, skip record select “state” under field name, then type in the state name under “equal to”
Answers: 2
question
Computers and Technology, 23.06.2019 09:10
Effective character encoding requires standardized code. compatible browsers. common languages. identical operating systems.
Answers: 1
You know the right answer?
Submit a program that outputs 26 coordinates listed in order, closest-to-farthest (physically on the...
Questions
question
Biology, 29.02.2020 23:00
question
Mathematics, 29.02.2020 23:03
question
Mathematics, 29.02.2020 23:05
Questions on the website: 13722361