English, asked by prempasupuleti9999, 5 months ago

min
sec
1
Problem statement
Gross Salary Basic salary + HRA + DA
Implement the following function:
int GrossSalary(int sal);
The function accepts an integer 'sal' basic salary of an employee. Implement the function to calculate and return the gross sala
employee according to the following rule:
If basic salary < 1550, then HRA 10% of basic salary and DA 80% of basic salary
If basic salary >= 1550, then HRA = 30% of basic salary and DA 90% of basic salary
Assumption: sal > 0
Note: All calculations are integral calculations and lie within integral range.
Example:
Input:
Fal: 1400
Output:
660
xplanation:
nce sal 1400 < 1550
HRA 1400
V10 V100 = 140
DA = 1400 80 100 = 1120
Gross Salary 11400 + 140 + 1120
us, output is 2660.
LTER
2660
ple Input​

Answers

Answered by harsha515540
0

Explanation:

I really didn't understand you qns

Sorry

Answered by sankarpinninti35
0

answer

Answer:

i want this code please share this

Explanation:

i

Similar questions