2023.4.22
1 #include <iostream> 2 using namespace std; 3 int main() 4 { 5 double num,profit = 0; 6 cout<<"请输入收入金额:"<<endl; 7 cin>>num; 8 if(num<3500) 9 { 10 cout<<"应征收税为0元"<<endl; 11 } 12 else 13 { 14 if(num<4500) 15 { 16 profit = 1500*0.03+(num-1500)*0.1; 17 cout<<"应征收税为:"<<profit<<endl; 18 } 19 else if(num<9000&&num>4500) 20 { 21 profit = 1500*0.03+3000*0.1+(num-4500)*0.2; 22 cout<<"应征收税为:"<<profit<<endl; 23 } 24 else if(num<35000&&num>9000) 25 { 26 profit = 1500*0.03+3000*0.1+4500*0.2+(num-9000)*0.25; 27 cout<<"应征收税为:"<<profit<<endl; 28 } 29 else if(num<55000&&num>35000) 30 { 31 profit = 1500*0.03+3000*0.1+4500*0.2+26000*0.25+(num-35000)*0.3; 32 cout<<"应征收税为:"<<profit<<endl; 33 } 34 else if(num<80000&&num>55000) 35 { 36 profit = 1500*0.03+3000*0.1+4500*0.2+26000*0.25+20000*0.3+(num-55000)*0.35; 37 cout<<"应征收税为:"<<profit<<endl; 38 } 39 else if(num>80000) 40 { 41 profit = 1500*0.03+3000*0.1+4500*0.2+26000*0.25+20000*0.3+25000*0.35+(num-80000)*0.45; 42 cout<<"应征收税为:"<<profit<<endl; 43 } 44 } 45 return 0; 46 }