Me gustaria saber como puedo hace esto?, siempre me da error
Publicado por Jose (6 intervenciones) el 31/01/2018 18:57:03
Write a function (computeTax()) to determine which tax bracket a user is in. The tax tables are:
If taxable income is over-- But not over-- Bracket
$0 $15,100 10%
$15,100 $61,300 15%
$61,300 $123,700 25%
$123,700 $188,450 28%
$188,450 $336,550 33%
$336,550 no limit 35%
The yearly income is passed as a parameter to the function. The function returns the percentage bracket that the user's income falls in. The return value from the function will be an integer (10, 15, 25, 28, 33, or 35).
If taxable income is over-- But not over-- Bracket
$0 $15,100 10%
$15,100 $61,300 15%
$61,300 $123,700 25%
$123,700 $188,450 28%
$188,450 $336,550 33%
$336,550 no limit 35%
The yearly income is passed as a parameter to the function. The function returns the percentage bracket that the user's income falls in. The return value from the function will be an integer (10, 15, 25, 28, 33, or 35).
Valora esta pregunta


0