![sophiaa23](/avatars/48984.jpg)
sophiaa23
19.10.2020 •
Computers and Technology
Write a C program to input basic salary of an employee and calculate gross salary according to given conditions.
Basic Salary <= 10000 : HRA = 20%, DA = 80%
Basic Salary is between 10001 to 20000 : HRA = 25%, DA = 90%
Basic Salary >= 20001 : HRA = 30%, DA = 95%
Your program must calculate each employee's gross pay amount.
Solved
Show answers
More tips
- F Food and Cooking What is the Right Thickness for a Perfect Cream Puff?...
- F Food and Cooking What can and cannot be eaten during Lent?...
- F Food and Cooking How to Find Your Zip Code?...
- W Work and Career Can Skill Alone Make You a Professional?...
- C Computers and Internet How to Top Up Your Skype Account Without Losing Money?...
- P Philosophy Unidentified Flying Object - What is the Nature of this Phenomenon?...
- F Family and Home Protect Your Home or Apartment from Pesky Ants...
- O Other What is a Disk Emulsifier and How Does it Work?...
- F Family and Home What does a newborn need?...
Answers on questions: Computers and Technology
- C Computers and Technology Which of the following objects are most susceptible to an insecure direct object reference attack? (choose two.) a. files b. registry keys c. conditional constructs...
- C Computers and Technology Let s write a simple markdown parser function that will take in a single line of markdown and be translated into the appropriate html....
- C Computers and Technology Jorge is sending a large image file to a friend as part of a shared classroom project. Which of the following is most likely true if Jorge opts to compress the...
- M Mathematics F(-3x)=-3x+1 Evaluate it....
- M Mathematics CAN SOMEONE HELP ME PLEASE ?!...
- M Mathematics Identify and verify the values of x and y that simultaneously satisfy the pair of equations y = 2x + 6 and y = –4x – 6 by graphing. *...
- P Physics 4. Which type of compound is sugar?...
- H History Like scoob i lost my old kidney stones...
- M Mathematics Hi if you can answer this i ll mark u brainllest and give you MORE points What are three equivalent decimals for the number -4.2323?...
- M Mathematics I m hungry and I will give a free brainliest :)...
Ответ:
Written in C
#include <stdio.h>
int main() {
float salary;
printf("Salary: ");
scanf("%f", &salary);
float HRA, DA;
if(salary <= 10000){
HRA = 0.20; DA = 0.80;
}
else if(salary >= 10000 && salary <= 20000){
HRA = 0.25; DA = 0.90;
}
else{
HRA = 0.30; DA = 0.95;
}
salary = salary + salary * HRA + salary * DA;
printf("Gross Salary: %.2f\n", salary);
return 0;
}
Explanation:
I've added the full program as an attachment where I used comments as explanation
Ответ:
Job creation
Industry diversification
Business retention and expansion
Economy fortification
Increased tax revenue
Improved quality of life