Upload
marco-pangilinan
View
212
Download
0
Embed Size (px)
DESCRIPTION
finalictfinalictfinalictfinalictv
Citation preview
#include#include#include
int tin, pexmp, phi,depend,deducpend,totdeduc;double gai, taxaincome, taxdue, withtax;char depen,qwith;
main();{clrscr();printf("\nEnter your TIN:");scanf("%d", &tin);printf("\nEnter Gross Annual Income:");scanf("%lf", &gai);printf("\n Personal Exemptions:");pexmp=50000;printf("\nPersonal Exemption: %d",pexmp);printf("\nEnter Premium Health Insurance:");scanf("%d", &phi);if(phi>2400)phi=2400;deducpend=0;printf("\nDo you have any dependents[Y/N]:");scanf("%c",&depen);scanf("%c",&depen);if(depen=='Y' || depen=='y'){printf("\nEnter no of dependents:");scanf("%d", &depend);if(depend>4){ depend=4;deducpend=depend*25000;printf("\nDeductions for dependents is: %d" , deducpend);}else{deducpend=depend*25000;printf("\nDeductions for dependents is: %d" , deducpend)}}if(gai
taxdue=(taxaincome - 70000) * 0.2 + 8500;else if(taxaincome>140000 && taxaincome250000 && taxaincometaxdue)printf("\nYou have a refund of: %0.2lf", withtax-taxdue);else if(taxdue>withtax)printf("\nYou have a payable of: %0.2lf",taxdue-withtax);elseprintf("\n You have no refund or payable");
getche();return 0; }