IT 117: Intermediate Scripting
Homework 8


Due Sunday, November 5th at 11:59 PM

Deliverables

There is one deliverable for this assignment: It must be in an hw8 directory, which you must create inside a hw directory inside you it117 directory.

Make sure the script obeys all the rules in the Script Requirements page.

Specification

In your hw8.py define the class Car that has the following attributes
The class must have the following methods

get_make()

This method returns the value of the make attribute.

get_model()

This method returns the value of the model attribute.

get_year()

This method returns the value of the year attribute.

print_car

This method prints a string consisting of the value of the make attribute, followed by a comma and a space, the value of the model attribute, followed by a comma and a space, and the value of the year attribute.

Test Code

Your script must contain the following test code
car = Car("Honda", "CRV", "1997")
print(car.get_make())
print(car.get_model())
print(car.get_year())
car.print_car()

Testing

When you run your script, your output should look this this
Honda
CRV
1997
Honda, CRV, 1997

	Be sure to run this script on the Unix machine so you know it works 
	in the environment in which I will run it when I score your homework.