Have students implement a simple GeoLocation class in Java that finds the distance between two locations using the Google Maps API to give students an interesting introduction to object-oriented programming.

Like(186 Likes)
  • Provide starter code for students to build upon to make this assignment accessible for novices.
    • Students make many classic mistakes as they learn about objects through this assignment. For example, instead of storing their own GeoLocation object that computes the distance between two locations, they often copy the code from the GeoLocation class.
  • Students will first write a variation of the class you provide that keeps track of additional information about a location.
  • For a detailed explanation of this assignment and to download the starter code, visit Stanford’s nifty assignment page.