PRO192_-_PE05_-_SP_2024_1529.webp
N

PRO192_-_PE05_-_SP_2024_1529.webp

name:String, age:int)
toString():String - return a string that contains all the information of the Professor: name, age, numOfChild and tenure
+ getGrossIncome():double + getTax(salary:double):double +toString():String
.
tenure
getGrossIncome():double - return gross income with gross income is calculated according to tenure as below:
Gross Income
>=1 and <= 3
3000
>3
5000
getTax(salary:double): double return tax of a professor with below rules:
o deduction = numOfChild*900
o taxable income salary - deduction
o If taxable income < 0 then tax is 0
o Depends on taxable income, we will calculate tax as
taxable income
tax
0.1*taxable income
follows:
<=1000
>1000
0.2*taxable income
The program outputs might look something like:
1.Test toString()
2.Test getGrossIncome()
1.Test toString()
2. Test getGrossincome()
1.Test toString()
2.Test getGrossIncome()
Zoom
+ 90%

Close
Chưa có bình luận nào.

Thông tin

Category
PRO192
Thêm bởi
Noelle2000
Ngày thêm
Lượt xem
5,843
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRO192_-_PE05_-_SP_2024_1529.webp
File size
152.6 KB
Dimensions
941px x 772px

Share this media

Back
Bên trên Bottom