Computer Science, asked by trishanthsurla, 3 months ago

Q1. Write a Programme to calculate tax, given the following
conditions:
-If income is less than 150,000, then no tax
-If income in the range of 150,001-300,000, then charge 10% tax
-If income is in the range of 300,001-500,000, then charge tax of 20%
-If income is above 500,001, then charge tax of 30%​

Answers

Answered by harshamani2020
3

#include<iostream.h>

#include<conio.h>

void main;

{

int income,tax;

cout<<"Enter the income of the person:";

cin>>income;

if(income<=150000):

cout<<" no tax to be collected ";

else if(income>=150001 & income <=300000):

tax=income/10;

cout<<"the tax amount is:"<<tax;

else if(income>=300001 & income<=500000):

tax=income/20;

cout<<"the tax amount is:"<<tax;

else:

tax=income/30

cout<<"the tax amount is:";

}

return 0;

Similar questions