Instructions
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).
Recommended tool to develop Assignment
-
Dev C++
Objectives:
To enable students to understand and
practice the concepts of:
- Data
Types and Variables
- Arithmetic
and Logical Operators
- If-else
and switch case statements
Assignment Submission Instructions
You have to submit only.cpp file on the assignments interface of CS201 from
your LMS account. Assignment
submitted in any other format will not be accepted and will be scaled with zero
marks.
For any query related to
assignment, please contact cs201@vu.edu.pk.
Create a menu based program using
C++ which will calculate the increment and tax deduction amount on salary based
on the pay scale of an employee. After this, net salary of employee will be
calculated. Details of these calculations are provided in Solution Guidelines.
You are required to use initial salary,
increment rate, and tax deduction rate given in following table for each of the
given pay scale.
Pay Scale
|
Initial Salary
|
Increment Rate
|
Tax deduction Rate
|
SPS6
|
40,000
|
20%
|
3%
|
SPS7
|
60,000
|
15%
|
3%
|
SPS8
|
80,000
|
10%
|
3%
|
SPS9
|
100,000
|
5%
|
3%
|
Using For Loop:[DOWNLOAD##download##]
Using Switch Case:[DOWNLOAD##download##]
Solution Guidelines:
- There
should be a menu consisting of different pay scales and options to select
any one pay scale. See first sample screenshot for reference.
- On the
basis of a selected pay scale, calculate increment amount and tax deduction
amount. For the rate of increment and tax, use the table given above.
- Increment
amount will be calculated through initial salary on the basis of given
rate.
- Updated
salary will be calculated as initial salary plus incremented amount.
- Tax
deduction amount will be calculated through updated salary as per given
rate.
- Formula
to calculate net salary is Net
Salary = Initial Salary – Incremented Amount – Tax Deduction Amount
- After
doing all necessary calculations, display initial salary, incremented amount,
increased (updated) salary, tax deduction amount and net salary. See last
sample screenshot for reference.
Post a Comment
Don't Forget To Join My FB Group VU Vicky
THANK YOU :)