Create a c++ program to request the user to enter their monthly income and then display the tax payable.

by following the rules listed below:

1. If their income is less than R5000.00, they do not have to pay any tax.

2. If their income is less than R10000.00, they have to pay tax at the rate of 10% for the amount above R5000.00.

3. If their income is above R10000.00, they have to pay tax at the rate of 15% for the amount above R10000.00 plus R5000.00.

answered Oct 19, 2019 by sawta
#include<stdio.h>
main()
{
float income,tax,b=0.10,c=0.15;
scanf("%f",&income);
if(income<5000)
{
printf("No tax payable");
}
else if(income>=5000 && income<10000)
{
tax=(income*b);
printf("tax payable=%f",tax);
}
else
{
tax=(income*c);
printf("tax payble=%f",tax);
}
}
answered Oct 19, 2019 by Rajat
#include<stdio.h>

int main()

{

int sale,taxable;

float tax;

scanf("%d ",&sale);

if(sale<=5000)

{

taxable=0;

tax=0;

}

else

if(sale>5000&&sale<=10000)

{

taxable=sale-5000;

tax=0.1*taxable;

}

else

{

taxable=sale-5000;

tax=(0.15*(sale-10000))+5000;

}

printf("Your tax has been calculated and it is as displayed :\n");

printf("Monthly salary        :%d \n",sale);

printf("Taxable income       :%d \n",taxable);

printf("Tax payable            : %.2f \n",tax);

printf("Thank you to use our system \n");

}
answered Oct 21, 2019 by (2,950 points)

#include <iostream>

using namespace std;

int main()
{
float income, tax;