Following on from a hardware challenge sent out at work last month, I posed a Software Engineering focused problem. As a successful global company, we have many customers around the world. While marketing are gallivanting around, visiting customers, it might be handy to have a program that tells them which of our customers are closest based upon which customer they are currently visiting. Being an engineer who is interested in writing software that is useful to everyone, you decide to write a general solution to the quandary. Each of our customers lives at a unique location. For the purposes of this program, the world is flat, and the latitude and longitude are for all intents and purposes Cartesian coordinates on a flat plane. For example, in our flat world, lat 45, long -179 is not as close to lat 45, long 179 when compared to lat 45, long 170. The task was to write a program that takes a single argument on the command line. This argument is a file name which contains the input ...
Ramblings about developing software. May contain traces of Java, Python, Scala, Typescript.