Problem 5
Salary of Employees (Id-1248)
Question:
A company stores the following details of employees such as name, employee id, basic pay, % of DA and HRA. Given details of 'n' employees of an organization. Write a C code to
i. get the details of each employee.
ii. print their employee id and
iii. Total salary.
Total salary = Basic Pay + % of DA * basic pay + HRA.
Input Format:
value of 'n'
Employee name of employee1
Employee id of employee1
Basic pay of employee1
Percentage of DA of employee1
HRA of employee1
...
Employee name of employee - n
Employee id of employee - n
Basic pay of employee - n
Percentage of DA of employee - n
HRA of employee - n
Output Format:
Employee id of employee1
Total salary of employee1
Employee id of employee2
Total salary of employee2
...
Employee id of employee - n
Total salary of employee - n
OUTPUT
INPUT
PROCESSING
I'm a paragraph. Click here to add your own text and edit me. It's easy.
I'm a paragraph. Click here to add your own text and edit me. It's easy.
I'm a paragraph. Click here to add your own text and edit me. It's easy.
C PROGRAM
I'm a paragraph. Click here to add your own text and edit me. It's easy.