Академический Документы
Профессиональный Документы
Культура Документы
1. Create a calculator class which will have methods add, multiply, divide &
subtract.
3. Create a Bank class which has attributes accountNo, balance. This class should
have behavior Deposit & Withdraw.
The behavior Deposit would accept the depositedAmt as argument & return
the newBalance equal to the sum of the previous balance & the depositedAmt.
4. Create a class Circle which has radius as its attribute. Provide methods Area() &
Perimeter() which would calculate Area & Perimeter respectively.
0 to 2000 : Tax=0%
2001 to 5000 : Tax=2% over the excess of 2000
5001 to 10000 : Tax=60+4% over the excess of 5000
10001 to 15000 : Tax=260+6% over the excess of 10000
15001 to 20000 : Tax=560+8% over the excess of 15000
20001 to 3000 : Tax=960+10% over the excess of 15000
30001 to 50000 : Tax=1960+12,5% over the excess of 15000
greater than 50001 : Tax=4460+15% over the excess of 15000