Question: ) 1. Write a C program to input basic salary of an employee and calculate its Gross salary according to following: Basic Salary =40 then

)

1. Write a C program to input basic salary of an employee and calculate its Gross salary according to

following:

Basic Salary <= 10000 : HRA = 20%, DA = 80%

Basic Salary <= 20000 : HRA = 25%, DA = 90%

Basic Salary > 20000 : HRA = 30%, DA = 95%

2. Write a program in C to take an integer number and check whether the number is odd or even. If the

number is odd, then add 25 with that number and print the output and if the number is even, multiply it

with 2 and print the output.

3. Write a C program to read temperature in centigrade and display a suitable message according

to temperature state below:

Temp < 0 then Freezing weather

Temp 0-10 then Very Cold weather

Temp 10-20 then Cold weather

Temp 20-30 then Normal in Temp

Temp 30-40 then Its Hot

Temp >=40 then Its Very Hot

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 Programming Questions!