<span style="color:#009900;">01./*
02.*Copyright (c) 2014,烟台大学计算机学院
03.*ALL right reserved
04.*文件名;test。cpp
05.*作者:姜 甜 甜
06.*完成日期2014年10月13日
07.*版本号v1.0
08.*
09.*问题描述:根据不同的存款期限计算并输出不同的利息和本息总和
10.*输入描述:输入存款金额s和存款期限代码x
11.*程序输出:输出利息sum和本息总和m
12.*/ </span>
#include <iostream>
#include<cmath>
using namespace std;
int main()
{
double dSalary,dTax=0,dNetIncome=0;
int t;
cout<<"请输入您本月的收入总额(元):";
cin>>dSalary;
t=dSalary-3500;
if(t>0 && t<1500)
dTax=t*0.03;
else if(t<4500)
dTax=t*0.1-105;
else if(t<9000)
dTax=t*0.2-555;
else if(t<35000)
dTax=t*0.25-1005;
else if(t<55000)
dTax=t*0.3-2755;
else if(t<800000)
dTax=t*0.35-5505;
else
dTax=t*0.45-13505;
cout<<"您本月应缴个人所和税 "<<dTax<<" 元,税后收入是 "<<dNetIncome<<" 元。\n";
cout<<"依法纳税,共享繁荣。谢谢使用!\n";
return 0;
}