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:

Name

ID Number

Department

Job Title

Susan Meyers

47899

Accounting

📝 Need Help With This Topic?

Get a custom-written paper by an expert in this subject. Plagiarism-free, on time, any citation style.

  • ✓ PhD & Masters qualified writers
  • ✓ Turnitin-safe β€” 0% similarity
  • ✓ Free revisions + money-back guarantee
Get My Paper Now

From $11/page · All academic levels

Vice President

Mark Jones

39119

IT

Programmer

Joy Rogers

81774

Manufacturing

Engineer

The program should store this data in the three objects, then display the data for each employee on the screen.

Example OUTPUT:

🌟 Writers Who Have Helped Students Like You

Our expert writers specialise in this subject and deliver original, well-researched papers.

S
Dr. Sarah M.★★★★★ 4.97 Β· 1,240 orders
Nursing & Healthcare Β· PhD Edinburgh
J
Prof. James K.★★★★★ 4.95 Β· 980 orders
Business & Law Β· MBA London

Employee 1:
Name: Susan Meyers
ID number: 47899
Department: Accounting
Title: Vice President

Employee 2:
Name: Mark Jones
ID number: 39119
Department: IT
Title: Programmer

Employee 3:
Name: Joy Rogers
ID number: 81774
Department: Manufacturing
Title: Engineer

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.

Sample output:

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

Customer information:
Name: john
Address: 239 lovers lane
Phone number: 817-907-5367
Customer Number: 0011
On Mailing List: True

——

General guidelines/requirements/grading criteria

🎉 100% Satisfaction Guaranteed β€” or Your Money Back

Join 12,400+ students who trust us with their academic success. Every order includes: free revisions within 30 days, plagiarism report, on-time delivery guarantee, and full confidentiality.

★★★★★

4.9/5 from 12,400+ reviews

Order & Get 25% Off

This HW will put your understanding of Object Oriented Programming with Classes and Inheritance to the test.

For classes, objects, properties, and methods, use sensible names.

If there are two words in the variable, use lowercase first word and uppercase initial letter of second word, i.e., firstName, or underscore between the two terms. e.g., 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:

Name

ID