Cs201Assignment 1 Solution Fall2020

0
92
Cs201Assignment 1 Solution Fall2020

Assignment No.  1
Semester: Fall 2020

Cs201Assignment 1 Solution Fall2020

Total Marks: 20

 

Due Date:  26-November-2020

Instructions

Please read the following instructions carefully before submitting assignment:

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

 

Assignment is submitted after due date.

Submitted assignment does not open or file is corrupt.

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 assignment, please contact cs201@vu.edu.pk.

Cs201Assignment 1 Solution Fall2020:  Download Here

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.

  1. If user enters 1, leve-A employee tax will be shown.
  2.  user enters 2, leve-B employee tax will be shown.
  3. If user enters 1, leve-C employee tax will be shown.
  4. user inputs wrong number then a message will be shown: “incorrect input”.

 

Cs201Assignment 1 Solution Fall2020:  Download Here