Problem with practice task "Caleydoscops" test2 | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula gr√°tis
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
–ź–Ľ–Ķ–ļ—Ā–Ķ–Ļ –•–ĺ—Ö–Ľ–ĺ–≤
–ź–Ľ–Ķ–ļ—Ā–Ķ–Ļ –•–ĺ—Ö–Ľ–ĺ–≤ - avatar
6 Respostas
21st Apr 2024, 11:03 PM
Rain
Rain - avatar
+ 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
Brian - avatar
+ 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
Brian - avatar
+ 1
Thanks for advice, l did so, how you advice.
22nd Apr 2024, 4:06 PM
–ź–Ľ–Ķ–ļ—Ā–Ķ–Ļ –•–ĺ—Ö–Ľ–ĺ–≤
–ź–Ľ–Ķ–ļ—Ā–Ķ–Ļ –•–ĺ—Ö–Ľ–ĺ–≤ - avatar
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
–ź–Ľ–Ķ–ļ—Ā–Ķ–Ļ –•–ĺ—Ö–Ľ–ĺ–≤
–ź–Ľ–Ķ–ļ—Ā–Ķ–Ļ –•–ĺ—Ö–Ľ–ĺ–≤ - avatar