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

When should the register modifier be used? Does it really help?

599


How do I convert a string to all upper or lower case?

621


Difference between Shallow copy and Deep copy?

1562


how should functions be apportioned among source files?

617


Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.

1612






What is c token?

599


Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?

659


How many bytes are occupied by near, far and huge pointers (dos)?

657


What is the description for syntax errors?

606


What is #include called?

561


Explain the bubble sort algorithm.

635


How can I call fortran?

633


How can you find the day of the week given the date?

607


Write a progarm to find the length of string using switch case?

1599


Explain how does flowchart help in writing a program?

617