Hits [email protected] Logout Question: 4 of 5 Marks : 10 130% + General Instructions Section [Section A] 1 o
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Hits [email protected] Logout Question: 4 of 5 Marks : 10 130% + General Instructions Section [Section A] 1 o
[email protected] Logout Question: 4 of 5 Marks : 10 130% + General Instructions Section [Section A] 1 of 1 Upload answer sheets Test time left: 01:46:08 A person wants to post a letter using the Speed Post service provided by the Indian post office. There is a high chance that if a person posts it from the central post office it will reach the destination faster than other offices. Since he assumes that all the posts are diverted to the central post office to further connect it with other cities. Given the sets of post offices available in the city, the central point office is the office that has the shortest total distance to all other post offices. Write a program that promotes the user to enter the number of the post offices and the locations of these post offices (in terms of coordinates) and find the central location of the post office located in the city. Sample Input and Output for 5 post offices are given below Input: Enter the number of Post offices: 5 Enter the coordinates of the Post offices: 2.5 5 5.13 19 5.4 54 5.5 2.1 Output: The central Post office is at (2.5, 5.0) location.
Hits