Question: Homework Description company that has just expanded its coverage. Given the You are an engineer at a wireless phone the best tower to serve new
Homework Description company that has just expanded its coverage. Given the You are an engineer at a wireless phone the best tower to serve new tower configuration, you are tasked with writing a program that determines assigned to serve each customer's mobile device. Ideally the tower with the strongest signal should be Thus, if the each mobile device. However each tower can serve a limited number of mobile devices. then mobile tower that has the strongest signal for mobile device x is already serving at its full capacity, device Xgets served by the tower with the next strongest signal that is not at full capacity. For this assignment you are going to get the tower configuration from a file that contains the tower ID, 2D coordinates and the cell tower mean radius separated by one space. Each line except the first line describes a cell tower. The first line contains the number of towers in the file. The file has the following structure: File name towers. txt file separated First line: Number of towers in the attributes All other lines Tower data (one tower per line, by space) Tower attribute information Tower ID 2 X coordinate 3. Y coordinate 4 Radius The mobile devices list is given in another file, which contains their ID and the 2D coordinates. Assume that the mobile devices given in the phones.txt file connect to the strongest tower in the order given by the phones.txt file. The phones.txt file has the following structure: File name phones txt First line: Number of phones in the file A11 other lines Phone data (one phone per line, attributes separated by space). Phone attribute information Phone ID 2. X coordinate 3. Y coordinate
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
