Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

) 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Dental Assisting

Authors: Doni Bird, Debbie Robinson

13th Edition

978-0323624855, 0323624855

Students also viewed these Programming questions