Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

write a c program to calculate the income tax of the
employees in an organization where the conditions are given as.
(I.T. = 0 if income <100000
I.T = 10% if income _< 200000
it = 20% if income >_ 200000)

Answer Posted / marvin

#include <studio.h>
main()
{
double income, i_t;
int tax;

printf ("
Enter income: ");
scanf ("%lf", &income);

if (income<100000)
tax = 0;

if (income<=200000)
tax = 10;

if (income>200000)
tax = 20;

i_t = income*tax/100;
printf ("
Income Tax = %lf",i_t);
}

Is This Answer Correct ?    6 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a loop?

1046


Differentiate between a for loop and a while loop? What are it uses?

1182


What is the use of getchar() function?

1132


Is r written in c?

1157


What is the function of multilevel pointer in c?

1087


How would you use the functions fseek(), freed(), fwrite() and ftell()?

1166


write a proram to reverse the string using switch case?

2947


How can I do graphics in c?

1031


the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above

1050


What is the maximum no. of arguments that can be given in a command line in C.?

1150


What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file

1117


What is storage class?

1079


Why is c called a mid-level programming language?

1204


What are local static variables? How can you use them?

1148


How do you list files in a directory?

1143