Question: Programming Exercise #3 Page 505 (Person and Customer classes): a.Name the first Python file person.py . This file will define the Person and Customer classes.

Programming Exercise #3 Page 505 (Person and Customer classes):

a.Name the first Python file person.py. This file will define the Person and Customer classes. Write get and set methods for all data attributes.

b.Name the second Python file person_demo.py. This file will create a Customer object, ask for all input information, and display the attributes.

c.In addition to the requirements, write a function in the Person and Customer classes called speak(self). When a Person object calls this function, the program will display I am a person. When a Customer calls this function, the program will display I am a customer. Write a function in the demo program that calls the speak function to identify the customer calling it.

d.The mailing list attribute is Boolean, so be sure to set it to true or false.

An example of what your program interaction might look like is below. It does not have to be exactly like this, as long as it works correctly:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!