0% found this document useful (0 votes)
24 views

Assignment No. 03 Semester: Spring 2021 CS304-Object Oriented Programming

This document provides instructions for Assignment 03 in the CS304 Object Oriented Programming course. Students are asked to implement C++ code for a payroll system that calculates salaries for salaried and hourly employees using inheritance and polymorphism. The assignment is due on July 19, 2021 and students must follow uploading instructions to submit their code in .CPP format with their student ID as the file name. Late or plagiarized assignments will not receive credit. The payroll system must calculate salaries for salaried employees with a fixed weekly wage and hourly employees who receive overtime pay above 40 hours. Sample output is provided.

Uploaded by

Umer Aslam
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views

Assignment No. 03 Semester: Spring 2021 CS304-Object Oriented Programming

This document provides instructions for Assignment 03 in the CS304 Object Oriented Programming course. Students are asked to implement C++ code for a payroll system that calculates salaries for salaried and hourly employees using inheritance and polymorphism. The assignment is due on July 19, 2021 and students must follow uploading instructions to submit their code in .CPP format with their student ID as the file name. Late or plagiarized assignments will not receive credit. The payroll system must calculate salaries for salaried employees with a fixed weekly wage and hourly employees who receive overtime pay above 40 hours. Sample output is provided.

Uploaded by

Umer Aslam
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Assignment No.

03 Total Marks: 20
Semester: Spring 2021
Due Date: 19/07/2021
CS304- Object Oriented Programming Lecture Covered: 23 -
29

Objective
The objective of this assignment is:
To give you the idea of practical implementation of C++ Inheritance and Polymorphism.

Uploading instructions:

 Your assignment should be in .CPP format (Any other formats like scan images, PDF, zip, doc, rar and
bmp etc. will not be accepted).
 Save your assignment with your ID (e.g. bc000000000.CPP).
 No assignment will be accepted through email.

Rules for Marking:

It should be clear that your assignment will not get any credit if:

 The assignment is submitted after due date.


 The submitted assignment does not open, execute or file is corrupted.
 Your assignment is copied from internet, handouts or from any other student.
(Strict disciplinary action will be taken in this case).

Lectures Covered:

This assignment covers Lecture # 23-29.

Assignment No. 03

A company pays its employees on a weekly basis. The employees are of two types:
1. Salaried Employees
2. Hourly Employees

Salaried employees are paid with a fixed weekly salary, regardless of the number of hours they worked.

Hourly employees are paid by the hour and receive overtime pay for all hours worked in excess of 40 hours. If
they work less than 40 hours then their salary will be:
Salary = wage*hours
If they work more than 40 hours their salary will be calculated using the given formula:
Salary = (40*wage) +((hours-40)*wage*1.5)
Where wage per hour will be 400 PKR.
The company wants to implement a C++ program that performs its payroll calculations. You are required to use
concept of Polymorphism to generate the sample output. The detail of data members and member functions for
each class is provided in the given class diagram. It is part of your assignment to understand the class diagram and
then implement the class diagram into C++ coding.

Solution Guidelines:
 You have to use concept of Polymorphism to generate the sample output.

Sample Output:
Best of luck!
NOTE: Do not put any query on MDB about this assignment, if you have any query then email at
[email protected]. Furthermore, if any student found cheating from any other student or from online forums then
he/she will be awarded ZERO right away and strict disciplinary action will be taken against the student.

Deadline: Your assignment must be uploaded/submitted on or before 19/07/2021.

You might also like