CS201 MID TERM SOLVED MCQs || PAST PAPERS || GROUP-1 || INTRODUCTION TO PROGRAMMING || VuTech Visit Website For More Solutions www.vutechofficial.blogspot.com …
CS304 ASSIGNMENT NO. 1 FALL 2022 || 100% RIGHT SOLUTION || OBJECT ORIENTED PROGRAMMING || BY VuTech
Visit Website For More Solutions
www.vutechofficial.blogspot.com
SEND WHATSAPP OR E-MAIL FOR ANY QUERY
0325-6644800
kamranhameedvu@gmail.com
Assignment No. 01
Semester: Fall 2022
CS304- OBJECT ORIENTED PROGRAMMING
Total
Marks: 20
Due Date: December 04, 2022
Objective
To give you the idea of
practical implementation of the following concepts of the Object Oriented Programming
(OOP):
·Access Specifiers, Data
Members and Member Functions
·Accessor Functions and
Constructors
·Dynamic Memory allocation
using new operator
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 # 7-12.
Visit Website For More Solutions
www.vutechofficial.blogspot.com
SEND WHATSAPP OR E-MAIL FOR ANY QUERY
0325-6644800
kamranhameedvu@gmail.com
As the annual inflation rate in Pakistan increased to 27.3% in August of 2022, the highest since May 1975, and figures could go even higher as deadly floods hit the country.
Transport prices recorded the most significant increase (63.1%), and housing and utilities (27.6%).
The (SWO) Staff welfare organization (attached department of Establishment Division primarily set up to look after the welfare of Federal Government employees FGE's) has launched a meeting and decided to increase Conveyance Allowance and House Rental Allowance to 25% and 45% of the basic salary respectively and reduce the tax to 2.5% of the basic salary. so that FGE's (Federal Government employees) can manage their living needs.
Suppose you have been hired by a Federal Government Department to develop a system for their Human Resource Department to calculate the salaries of the employees as per SWO's above policy.
The user will enter Employee Id, Employee Name and basic salary of the employee and the allowances will be calculated according to the basic salary and the tax deduction. Then the Net Payable Salary will be calculated according to the following formulation:
Net Payable Salary = Basic Salary + Conveyance Allowance + House Rental Allowance – Tax
Conveyance Allowance = 35% of the Basic salary
House Rental Allowance = 50% of the Basic salary
Tax = 1.5% of the Basic salary
Implement C++ code for the following functionalities:
·Write a class named Employee with the following attributes: Employee Id, Employee Name, Employee Basic Salary, Conveyance Allowance, House Rental Allowance, tax deduction and Employee Gross Salary
·Create an array of three objects using new operator which will store the data.
·Create a function for entering data of the employees as mentioned in the Screenshot given below.
·Calculate the salary of the employees according to the formulation mentioned above.
·Display the Employee Details using the Getter Functions in the main() function.
Note:
Display your VU ID at the top of the output screen as shown in the screenshot.
After running your program, the following screen should display.
Best of luck!
NOTE: Do not put any query on MDB about this assignment, if you have any query then email at cs304@vu.edu.pk. 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.
We provide Virtual University of Pakistan Study Materials such as Solution of Assignments, GDBs, Mid Term Solved Papers, Final Term Solved Papers, Mid Term Solved MCQs, and Final Term Solved MCQs. We also provide regular Semester Quizzes, Updated Handouts, and Short Questions and Answers. We help you with your research and many other educational-related topics, as far as we know. Furthermore, Share your problem with us and Please feel free to ask any related questions.