Assignment No. 1
Semester: Fall 2020
CS201
– Introduction to Programming
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
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 the assignment, please contact cs201@vu.edu.pk.
Assignment:
Information about an ABC organization is given below.
1.
There are 10 employees in the organization.
2.
There are 2 employees of level-A, 3 employees of level-B,
5 employees of level-C.
3.
The information about their salaries is given below.
a)
The salary of level-A employee is Rs.1, 25,000.
b)
The salary of level-B employee is Rs.80, 000.
c)
The salary of level-C employee is Rs.45, 000.
4.
Rs.600 is deducted from the salaries of all employees
against staff welfare fund.
5.
If ANNUAL
salary of an employee is more than Rs.600, 000, 1% tax is deducted from salary each month.
You are required to write a C++ program which finds
1)
Total monthly tax deduction for all employees.
2)
Total amount of welfare fund collected each month from
all employees.
3)
Net monthly salary of an employee. (Level-A, level-B, level-C).
(Hint: Net_Monthly_Salary= Original_Salary- Monthly_Tax
– Monthly_Welfare_Fund)
4)
Total amount which organization pays to its employees each
month.
5)
Also create a menu using (if-else) conditional
statements, if a user wants to know about the separate tax collection of Level-A,
Level-B, And Level-C employees.
If user enters 1, leve-A employee tax will be shown.
If user enters 2, leve-B employee tax will be shown.
If user enters 1, leve-C employee tax will be shown.
If user inputs wrong number then a message will be shown: “incorrect input”.
Sample Screenshot of Output: