Question: Problem Statement: Given basic Salary of an employee,calculate its gross salary according to the following condition: Basic Salary < = 1 0 0 0 0

Problem Statement:
Given basic Salary of an employee,calculate its gross salary according to the following condition:
Basic Salary <=10000 : HRA =20%, DA=80%
Basic Salary <=20000 : HRA =25%, DA=90%
Basic Salary >20000 : HRA =30%, DA=95%
Input Format:
Enter an Integer indicating the basic salary as input
Output Format:
Print the output as floating point value(2 decimal places) indicating the gross salary
Example :
input: 10000.00
10000+10000*0.2+10000*0.8=20000
Output: 20000.00
Constraints:
-10^9<= INPUT <=10^9
Sample Input 1:
25468
Sample Output 1:
Rs.57303.00
Sample Input 2:
35000

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!