CS411 Assignmnet # 2 (Spring 2016) Complete Solution
It should be clear that your assignment would not get any credit if:
· The assignment is submitted after due date.
· The submitted assignment does not open or file is corrupt.
1) You should consult recommended books to clarify your concepts as handouts are not sufficient.
2) You are supposed to submit your project as a single file Anyother formats like scan images, PDF, bmp, docx etc. will not be accepted.
Write a with following requirements:
Title of the Salary Window should be Salary Calculator.
Salary Calculator window should contain the or list box which will be used to the designation i.e. (BPS-I, BPS-II, BPS-III, BPS-IV, and BPS-V).
Basic Salary of all the scales will be as follow
Salary Calculator window should contain the 7 textboxes where it will display the respective information on the basis of selection of ComboBox. Label of the Text Boxes will be Basic Salary, HR Allowance, UB Allowance, T Allowance, CVN Allowance, M Allowance, Gross Total.
At the End, Salary Window Calculator should contain 10 TextBlocks which will be used to display increment information (from 1 to 10).
It should declare a namespace with name Salary_Calculator
In the above namespace, it should declare a class with the name MainWindow
Class should contain a constructor which should initialize the components.
Class should contain three methods
Class should contain a “SelectionChanged” method on combobox, which should load all the values including basic salary, allowances (HR Allowance, UB Allowance, T Allowance, CVN Allowance, and M Allowance), total salary and increments (First, Second, Third, Fourth, Fifth, Sixth, Seventh, Eighth, Ninth, Tenth). For this purpose it uses “Allowance_Calculation” and “Increment_Calculation” methods discussed below.
method should accept one which will be Basic Salary and then calculate the allowance using amount of Basic Salary. Different percentage of allowances is as follows
= 45% * Basic Salary
= 10% * Basic Salary
= 15% * Basic Salary
= 5% * Basic Salary
= 12% * Basic Salary
= Basic Salary + HR Allowance + UB Allowance + T Allowance + CVN Allowance + M Allowance
method should accept one argument i.e. Gross Total Salary and then calculate increments using the amount of Gross total. Increment values will be calculated on the basis of following information,
= (0.1 * Gross Total) + Gross Total
= (0.2 * Gross Total) + Gross Total
= (0.3 * Gross Total) + Gross Total
= (0.4 * Gross Total) + Gross Total
= (0.5 * Gross Total) + Gross Total
= (0.6 * Gross Total) + Gross Total
= (0.7 * Gross Total) + Gross Total
= (0.8 * Gross Total) + Gross Total
= (0.9 * Gross Total) + Gross Total
= (1.0 * Gross Total) + Gross Total
Complete Solution File in Zip Format find Below Attachment :