MMDT1146 PHP Programming
Week 11
Week 11 Notes:
|
Lab 11 This lab is to test your knowledge of being able to generate dynamic graphics using php. You may use these gauge graphics as a starting point, or you may use your own. The lab must contain several items. Your resulting output should like similar to this. Create a subfolder on your web server named "weather". (This may already be done for you from doing the in class exercise.) Generate a thermometer graphic that represents the current temperature. The graphic should be a png format. In the graphic, also display the current temperature in numerical format as well. In my example I did it in the "bulb" area of the graphic. Generate a humidity gauge graphic that represents the current humidity. The graphic should be a png format. In the graphic, also display the current humidity in numerical format as well. Display the graphic on the page. Note: The in class exercise used polar coordinates. Convert to rectangular coordinates. Generate a barometer graphic that represents the current barometric pressure. The graphic should be a png format. In the graphic, also display the current barometric pressure in numerical format with two decimal points as well. Display the graphic on the page. Final result needs to be using rectangular coordinates. Required: Instead of using the imagefilledarc() function, convert from polar to rectangular coordinates and then use a imageline() function instead. The result looks cleaner. Assignment is due 1 week from when it was assigned. 50% penalty if late.
|