12342 - Tax Calculator


Difficulty : trivial

Solution Description :

Simple ad hoc math problem

calculate tax using the role what is say in question description
the calculation must be use double data type

convert the tax to ceiling m=ceil(tax) 
example: 
if tax=0.0001 then m=ceil(tax)=ceil(0.0001)=1

if(m>0 && m<2000) then m=2000

print m