General information/requirements/grading rules
This HW will test your knowledge on Object Oriented Programming using Classes and Inheritance
Use meaningful names for classes, objects, attributes and methods
If there are two words in the variable use first word lowercase and first letter of second word upper case i.e., firstName, or underscore between the two words i.e first_name
Include appropriate comments in the code
Output should be displayed exactly as mentioned against each problem
Indent the lines of code appropriately
Q1: Employee.py : (50 points)
Write a class named Employee that holds the following data about an employee with attributes: name, ID number, department and job title.
Once you have written a class, write a program that creates three Employee objects to hold the following data:
The program should store this data in the three objects, then display the data for each employee on the screen.
Name: Susan Meyers
ID number: 47899
Title: Vice President
Name: Mark Jones
ID number: 39119
Name: Joy Rogers
ID number: 81774
Q2: Customer.py : (50 points)
Write a class named Person with data attributes for a person’s name, address, and telephone number. Next, write another class named Customer that is a subclass of the Person class. The Customer class should have a data attribute for a customer number, and a Boolean data attribute indicating whether the customer wishes to be on a mailing list. Demonstrate an instance of the Customer class in a simple program.
Enter the name: john
Enter the address: 239 lovers lane
Enter the phone_number: 817-907-5367
Enter the customer number: 0011
Does the customer wish to be on the mailing list?(Yes/No) Yes
Address: 239 lovers lane
Phone number: 817-907-5367
Customer Number: 0011
On Mailing List: True
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.Read more
Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.Read more
Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.Read more
Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.Read more
By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.Read more