Total tax liability coderinme

Total tax liability coderinme

Total tax liability coderinme
Read gender and income and output incometax
Upto Rs1,50,000 (women 1,80,000) Nil
1,50,001 ( women 1,80,001) to 3,00,000 10%
Rs.3,00,001 to 5,00,000 20%
Rs.5,00,001 upwards 30%
A surcharge of 10% of total tax liability is also applicable if income exceeds Rs.10, 00, 000.

#include<stdio.h>
int main()
{
int s;
double tax,income, surcharge;
printf("Select Code\n1. male\n2. Female\n");
printf("Enter choice: ");
scanf("%d",&s);
printf("\n");
if(s == 1)
{
printf("Please enter your income: ");
scanf("%lf",&income);
if(income > 0 && income <= 150000)
{
printf("No TAX will be payed\n");
}
else if(income > 150000 && income <= 300000)
{
tax = 10.0 / 100 * income;
printf("The TAX will be pay at Rs. %.2lf is: %.2lf\n",income,tax);
}
else if(income > 300000 && income <= 500000)
{
tax = 20.0 / 100 * income;
printf("The TAX will be pay at Rs. %.2lf is: %.2lf\n",income,tax);
}
else if(income > 500000 && income <= 1000000)
{
tax = 30.0 / 100 * income;
printf("The TAX will be pay at Rs. %.2lf is: %.2lf\n",income,tax);
}
else if(income > 100000)
{
tax = 30.0 / 100 * income;
surcharge = tax + 10.0 / 100 * (tax);
printf("Tatal Tax: %.2lf\n",tax);
}
}
else if(s == 2)
{
printf("Please enter your income: ");
scanf("%lf",&income);
if(income > 0 && income <= 180000)
{
printf("No TAX Will be payed\n");
}
else if(income > 180000 && income <= 300000)
{
tax = 10.0 / 100 * income;
printf("The TAX will be pay at Rs. %.2lf is: %.2lf\n",income,tax);
}
else if(income > 300000 && income <= 500000)
{
tax = 20.0 / 100 * income;
printf("The TAX will be pay at Rs. %.2lf is: %.2lf\n",income,tax);
}
else if(income > 500000 && income <= 1000000)
{
tax = 30.0 / 100 * income;
printf("The TAX will be pay at Rs. %.2`lf is: %.2lf\n",income,tax);
}
else if(income > 100000)
{
tax = 30.0 / 100 * income;
surcharge = tax + 10.0 / 100 * (tax);
printf("Tatal Tax: %.2lf\n",tax);
}
}
else
printf("Please select correct choice");
getch();
return 0;
}

For more programs in C, visit our C Coder Archives

Total tax liability coderinme

All rights reserved. No part of this Post may be copied, distributed, or transmitted in any form or by any means, without the prior written permission of the website admin, except in case of brief quotations embodied in critical reviews and certain other noncommercial uses permitted by copyright law. For permission requests, write to the owner, addressed “Attention: Permissions Coordinator,” to the admin @coderinme

Leave a reply:

Your email address will not be published.