CS 201 Assignment 1 Solution 2020

CS 201 Assignment 1 Solution 2020

CS 201 Assignment 1 Solution :

Click Here:



CS 201 Assignment 1 Solution  Assignment No.  1
Semester: Spring 2020CS201 – Introduction to Programming
Total Marks: 20


Due Date:  01/06/2020


Please read the following instructions carefully before submitting the assignment:

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


The assignment is submitted after the due date.

The submitted assignment does not open or file is corrupt.

Assignment is copied (From the internet/students).


The recommended tool to develop Assignment

–          Dev C++



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

CS 201 Assignment 1 Solution Spring 2020  

Click Here:



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, the net salary of employees will be calculated. Details of these calculations are provided in Solution Guidelines.


So, You are required to use initial salary, increment rate, and tax deduction rate given in following table for each of the given pay scales.


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%


Solution Guidelines:

  • There should be a menu consisting of different pay scales and options to select any one pay scale. See the 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.
  • The increment amount will be calculated through the initial salary on the basis of the given rate.
  • The updated salary will be calculated as an initial salary plus the incremented amount.
  • The tax deduction amount will be calculated through an updated salary as per the 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 the last sample screenshot for reference.



Click Here: