2023 CS1A | Assignment Collections

Computer Science 2023 A+ Work

2023 CS1A | Assignment Collections

CS1A                                                                                                                       Lab #6

Lab 6:  Classes and Objects (50 points)

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).

* Program or Lab #: Insert assignment name

 * Programmer: Insert your name

 * Due: Insert due date

 * CS21A, Summer 2014

 * Description: (Give a brief description for Lab 6)

 

 

 

 

 

We give our students 100% satisfaction with their assignments, which is one of the most important reasons students prefer us to other helpers. Our professional group and planners have more than ten years of rich experience. The only reason is that we have successfully helped more than 100000 students with their assignments on our inception days. Our expert group has more than 2200 professionals in different topics, and that is not all; we get more than 300 jobs every day more than 90% of the assignment get the conversion for payment.

Place Order Now

#write essay #research paper #blog writing #article writing #academic writer #reflective paper #essay pro #types of essays #write my essay #reflective essay #paper writer #essay writing service #essay writer free #essay helper #write my paper #assignment writer #write my essay for me #write an essay for me #uk essay #thesis writer #dissertation writing services #writing a research paper #academic essay #dissertation help #easy essay #do my essay #paper writing service #buy essay #essay writing help #essay service #dissertation writing #online essay writer #write my paper for me #types of essay writing #essay writing website #write my essay for free #reflective report #type my essay #thesis writing services #write paper for me #research paper writing service #essay paper #professional essay writers #write my essay online #essay help online #write my research paper #dissertation writing help #websites that write papers for you for free #write my essay for me cheap #pay someone to write my paper #pay someone to write my research paper #Essaywriting #Academicwriting #Assignmenthelp #Nursingassignment #Nursinghomework #Psychologyassignment #Physicsassignment #Philosophyassignment #Religionassignment #History #Writing #writingtips #Students #universityassignment #onlinewriting #savvyessaywriters #onlineprowriters #assignmentcollection #excelsiorwriters #writinghub #study #exclusivewritings #myassignmentgeek #expertwriters #art #transcription #grammer #college #highschool #StudentsHelpingStudents #studentshirt #StudentShoe #StudentShoes #studentshoponline #studentshopping #studentshouse #StudentShoutout #studentshowcase2017 #StudentsHub #studentsieuczy #StudentsIn #studentsinberlin #studentsinbusiness #StudentsInDubai #studentsininternational