Re: CS441 Assignment 2 Solution and Discussion
Assignment No. 02
SEMESTER Spring 2020
CS441- Big Data Concepts
Total Marks: 20
Due Date: 18/06/2020
Please read the following instructions carefully before submitting assignment:
It should be clear that your assignment will not get any credit if:
o Assignment is submitted after due date.
o Submitted assignment does not open or file is corrupt.
o Assignment is copied (From internet/students).
Software allowed to develop Assignment
To enable students to write, execute a program in Python. Moreover to familiarize students with the concepts of:
• Classes and objects
• Object declaration
• Methods/functions calling
Assignment Submission Instructions
You have to submit only.py file on the Assignments interface of CS441 at VULMS. Assignment submitted in any other format will not be accepted and will be graded zero marks.
Lectures Covered: This assignment covers Weeks # 03 - 05
Your assignment must be uploaded/submitted on or before 18/06/2020.
Write a Python program that will create a class named Employee.
This class will have 4 data members:
The Employee class will have the following setter functions:
setID(), which takes a single parameter of appropriate data type
setName (), which takes a single parameter of appropriate data type
setAddress(), which takes a single parameter of appropriate data type
setDesignation(), which takes a single parameter of appropriate data type
The Employee class will have the following getter functions:
You are required to write a default constructor for this class.
In the default constructor, you will initialize all the data members with the its default values. The message “Default constructor called” should be displayed whenever an object is created with the default constructor.
Now, create an object by using the default constructor and display the values of data members through calling getters functions.
Then set the values of the data members by calling the setters functions and then display its values by calling getters functions.
To solve this assignment, you need to install latest Python compiler or you can run (check) your code through online compiler at the following link:
For any query about the assignment, contact at [email protected]