**New course!**Every coder should learn

**Generative AI!**

0

# Problem with practice task "Caleydoscops" test2

If tax=7%from15(3 Caleydoscops) 15*0.07=1.05 1.05+13.5=14,55. Or tax=7% from 13.5 then finish price=price (3)-discount+tax 15-1.5+0.945=13.5+0.945=14.445

6 Answers

+ 2

Kaleidoscopes
https://www.sololearn.com/coach/44?ref=app

+ 2

ะะปะตะบัะตะน ะฅะพั
ะปะพะฒ I agree, they should explicitly mention to round the tax to the nearest cent. It is unlikely Sololearn admin will notice your post here. Instead, send feedback via the hamburger menu in the app, or send email to info@sololearn.com.

+ 1

ะะปะตะบัะตะน ะฅะพั
ะปะพะฒ the example given in the task helps to clarify that the discount is applied first. After the discount is applied then the tax is calculated.

+ 1

Thanks for advice, l did so, how you advice.

0

It seems there is an issue with the tax calculation for your kaleidoscopes. If the tax is 7% applied to 15 (for 3 kaleidoscopes) the correct calculation would be 15 * 0.07 = 1.05. Adding this to the net price of 13.5 (after discount) the total becomes 14.55. If the tax is applied after the discount (on 13.5) then the calculation would be 13.5 * 0.07 = 0.945 resulting in a final price of 13.5 + 0.945 = 14.445.

0

Yes, good. But in program in output : 14.45. And I ask moderator, or admin to check this task and to correct mistakes.