1 / 7

CSE332: Data Abstractions Lecture 25: There is no lecture 25

CSE332: Data Abstractions Lecture 25: There is no lecture 25. Dan Grossman Spring 2010. Huh?. We need most or all of the class to finish up concurrency, using the materials in lecture 24

faith
Download Presentation

CSE332: Data Abstractions Lecture 25: There is no lecture 25

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CSE332: Data AbstractionsLecture 25: There is no lecture 25 Dan Grossman Spring 2010

  2. Huh? • We need most or all of the class to finish up concurrency, using the materials in lecture 24 • We spent a few minutes at the beginning of class discussing a small change to project 3, using the next few slides CSE332: Data Abstractions

  3. GUI • Optional • Fun • Useful for testing • against intuition • Easy to use • Not good for testing • timing • Not what we’ll grade • against CSE332: Data Abstractions

  4. Small change to code • To get the GUI to: • Be accurate • Give the same answers as your text version • We had to make a small change to the code provided to you • No change to your code or what you do • But does change the answers you will get! • And slightly harder to compare against answers manually CSE332: Data Abstractions

  5. Projections News update: The world is a globe and maps are flat To get a reasonable projection, we can basically change the latitude • The map in our GUI uses a Mercator Projection • So we’re changing the CensusGroup data to use the same projection… CSE332: Data Abstractions

  6. Changed code classCensusGroup {intpopulation;float latitude;float realLatitude; // ignore but may help testfloat longitude;CensusGroup(intpop, float lat, float lon) { population = pop;latitude = mercatorConversion(lat);realLatitude = lat; longitude = lon; }float mercatorConversion(float lat){ // math here } } CSE332: Data Abstractions

  7. Bottom line • You can swap in the new CensusGroup any time before next Tuesday • Once you do, the latitude in the input file is not the latitude that will be used in your calculations • We did this for you • But will affect the result slightly: more so for data farther North • That’s all you have to understand • Make sense? CSE332: Data Abstractions

More Related