Programming Homework Help

Programming Homework Help. Car Class Python Program Project

Problem statement

For this exercise you will develop a Python module containing a Car class. Instances of the class will be able to turn and drive forward. They will have three attributes: x (an x coordinate), y (a y coordinate) and heading (a direction the car will drive, in degrees; for this assignment, a heading of 0 indicates due north, a heading of 90 is due east, etc.). They will have three methods: __init__(), turn(), and drive().

You will also write a sanity_check() function outside fo the class that instantiates the class, invokes the methods, and prints the attributes.

Programming Homework Help