Write in PHP a class for dog breeds. Your class should have the properties: breed name, height, colors, description, and group.
You should include a function that converts the height in inches to the height in centimeters (multiply by 2.54). Place the
class code in a separate PHP file that you will "include" in another PHP page. On that page, instantiate an array of at least three dogs,
you can use some of this information DogData.txt or go to
http://www.akc.org/breeds/breeds_a.cfm if
you want to choose different breeds. Use the objects in your array to display some of the dog breed properties.
Submit zipped file.
Lab: Car Class
Write a Car class. Use data
for example from
http://www.car-data.com/
or
http://www.edmunds.com The properties must include Make, Model and MPG (e.g.
26 city/36 highway) and at
least two other properties. Write two functions -- one that uses PHP's explode method to return the city MPG and the other the highway
MPG. Make an array of at least three car objects.
JSON Movie Lab: Pick a movie and write a JSON file for your movie object. Properties should include title, year, genre,
director(s), writer(s), stars, and description. Find an online JSON Validator to test your code before submitting it.
(http://www.imdb.com)