Your task is to write a PHP program that makes maps. It should read a map from URL, and make a pretty picture. The data is loaded into the database, and you can find the scheme at http://euclid.nmu.edu/~rappleto/Nations/nations.scheme.html This assignment is out of 27 points. I don't expect you to do all the stuff below. You lose 10% per day (50% max) starting after Wed March 28th at 4pm. Really!
A simple one polygon one nation task: http://euclid.nmu.edu/~rappleto/Nations/MakeMap.php?mx=1&numalliances=1&size=500
A three nation many polygon task: http://euclid.nmu.edu/~rappleto/Nations/MakeMap.php?us=1&ca=2&mx=3&numalliances=3&size=500
The Point List
Points |
Task |
3 |
Can draw a recognizable picture. (smily faces count, any map counts) |
3 |
Can draw a map of a single nation that has one polygon (like Mexico, Afghanistan) |
3 |
Can draw a map of a single nation that has more than one polygon (The U.S., Russia) |
3 |
Can draw maps of multiple nations |
2 |
Can draw the whole world |
2 |
Can assign each alliance to it's own color |
2 |
When you click on a nation, the smell from the national flower appears from the screen. |
2 |
User can specify the size of the picture in pixels on the URL |
2 |
Image scales so that the picture takes the whole map (Afghanistan fills the image, not just a small dot in the center of the image.) |
|
|
2 |
Every variable has an understandable variable name (without exception). |
-10 |
Failure to indent |
3 |
Nations keep a reasonable aspect ratio. Chile looks long and skinny. |
3 |
Uses any projection not taught in class. |
Hint: My version of this program has 87 lines, and 50 ";".