Question: 4. [20 marks Divide-and-conquer; programming question. Write a Java program that uses your algorithm developed for question 2 of this assignment to compute load factor
4. [20 marks Divide-and-conquer; programming question. Write a Java program that uses your algorithm developed for question 2 of this assignment to compute load factor of qiven radars. You program will read multiple lines from the standard input and print the results to the standard output Input Specification The input consists of n +1 lines. The first line has n, the number of stations. The following n lines have three numbers each: the ID number of station i, and its r, and yi coordinates. All station IDs are different. We will not be testing whether your program errorS detects input Output Specification The output must have n lines, each giving a station ID umber and the load factor for that station. Your output must be sorted by station ID (in increasing order) Sample input 2 3 3 10 4 2 13 5 6 7 2 1 Sample output 7 0 10 1 13 3 Submit single Java ile named radar.java. 4. [20 marks Divide-and-conquer; programming question. Write a Java program that uses your algorithm developed for question 2 of this assignment to compute load factor of qiven radars. You program will read multiple lines from the standard input and print the results to the standard output Input Specification The input consists of n +1 lines. The first line has n, the number of stations. The following n lines have three numbers each: the ID number of station i, and its r, and yi coordinates. All station IDs are different. We will not be testing whether your program errorS detects input Output Specification The output must have n lines, each giving a station ID umber and the load factor for that station. Your output must be sorted by station ID (in increasing order) Sample input 2 3 3 10 4 2 13 5 6 7 2 1 Sample output 7 0 10 1 13 3 Submit single Java ile named radar.java
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
