Write a class named employee that holds the data of employee

Assignment Help Programming Languages
Reference no: EM131299870

Lab: Classes and Objects

This lab will give you more experience on the use of:

- classes
- class methods

Lab 6: Employee Class [50 points]

Write a class named Employee that holds the following data about an employee in attributes:
name, ID number, department, and job title.

Once you have written the class, write a program that creates three Employee objects to hold the following data:

Name ID Number Department Job Title
Susan Meyers 47899 Accounting Vice President
Mark Jones 39119 IT Programmer
Joy Rogers 81774 Manufacturing Engineer

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

# Fill in this space to construct an Employee class class Employee:

def __init__(self, name, id_number, department, title):
def set_name(self, name):
def set_id_number(self, id_number):
def set_department(self, department):
def set_title(self, title):
def get_name(self):
def get_id_number(self):
def get_department(self):
def get_title(self):
def __str__(self):
def main():

# Fill in this space to create three instances of Employee
print('Employee 1:')
print(emp1)
print()
print('Employee 2:')
print(emp2)
print()
print('Employee 3:')
print(emp3)

# Call the main function.
main()
Here is a sample run:
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

Submission

1. Include the standard program header at the top of your Python file.
2. Submit your files to Etudes under the "Lab 6 " category.

Employee.py

Standard program header

Each programming assignment should have the following header, with italicized text appropriately replaced.

Note: You can copy and paste the comment lines shown here to the top of your assignment each time. You will need to make the appropriate changes for each assignment (assignment number, due date, and description).

Reference no: EM131299870

Questions Cloud

How many shares could she have purchased : Amount of Shares Purchased. If Hope (from problem 1) had invested the same amount of money in a no-load fund with the same price per share, how many shares could she have purchased?
Provide one practical application of series circuits : Provide one practical application of series circuits. In a series circuit, discuss why does the largest R dissipates the most power. Why would it be important to know this?
Demonstrates a favorable irc section 338 : Examine at least one benefit of a Section IRC 338 liquidation election for a target corporation. Create a situation which demonstrates a favorable IRC Section 338 liquidation election for a target corporation.
Define what we mean by money and how it is used in the day : Define what we mean by money and how it is used in the day to day functioning of the U.S. economy. Be sure to include the major components that make up what is defined as money and which of these components is used most widely to identify what mo..
Write a class named employee that holds the data of employee : Write a class named Employee that holds the following data about an employee in attributes: name, ID number, department, and job title.
What is the expense ratio for mark’s mutual fund : Estimating Returns. Hope (from problem 1) later sells her shares in the mutual fund for $37 per share. What would her return be in problems 1 and 2?
Financial statement analysis and valuaation : Given your knowledge of Starbucks key success and risk factors, use the note information presented above to evaluate Starbucks accounting quality.
Fixed line to support data transmission : 1. Can you upgrade your PSTN fixed line to support data transmission? If you can, how would you do it? 2. What is Asynchronous Transfer Mode (ATM)?
Analyze the effects the team''s decisions had on snc working : The executive team of SNC has completed the decision making for capital budgeting for the firm. Summarize the decisions made by each member. Analyze the effects the team's decisions had on SNC's working capital

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd