Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
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

21st Apr 2024, 8:38 PM
Алексей Хохлов
6 Réponses
21st Apr 2024, 11:03 PM
Rain
+ 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.
22nd Apr 2024, 5:47 AM
Brian
+ 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.
21st Apr 2024, 11:30 PM
Brian
+ 1
22nd Apr 2024, 4:06 PM
Алексей Хохлов
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.
21st Apr 2024, 9:22 PM
piano T
0
Yes, good. But in program in output : 14.45. And I ask moderator, or admin to check this task and to correct mistakes.
22nd Apr 2024, 3:52 AM
Алексей Хохлов
Aujourd'hui en vedette
Help!