Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a Python Program Write a class named Employee that holds the following data about an employee in attributes: Name, Date of birth, Gender, ID

Write a Python Program

Write a class named Employee that holds the following data about an employee in attributes: Name, Date of birth, Gender, ID number, Department. Write a program that creates three Employee objects to hold the following data:

  • Name: 1. Sara Gaddis 2. John Jones 3. Alex Karen
  • Date of birth: 1. 09/06/1985 2. 12/12/1980 3. 02/07/1997
  • Gender: 1. Female 2.Male 3.Male
  • ID number: 1. 423543 2. 324980 3. 256987
  • Department: 1. IT 2. Accounting 3. Security

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

Hint: use the magic function to save your class.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Programming questions