بسم الله الرحمن الرحيم
السلام عليكم ورحمة الله وبركاته
كيفكم ؟
ارجو مساعدتي في حل السؤال ( C Programming )
والسؤال هذا :
رمز Code:
Write a c program to calculate the pay bill of an employee in a company.
Input:
Employee id
(Employee designation(manager or worker
basic salary
HRA
DA
Number of overtime
Process:
,
,If employee designation is
Manager
If the basic salary is less than RO.1500,than HRA=10%of basic .salary and DA=90% of basic salary
if the basic salary is either equal to or above RO.1500,than HRA=RO.500 and DA=98% of basic salary.
The overtime payment is 6 omani Rials per ho
Overtime payment=number of overtime hours*6
Gross salary=basic salary+HRA+DA+overtime
Output:
Print the following:
Employee id
Employee designation
Basic salary
HRA
DA
Overtime payment
Gross salary.
أكثر...