CodeGym/Java Tasks/Calculating the order cost 🛍️

Calculating the order cost 🛍️

  • 1
  • Locked
Calculating the order cost 🛍️
You can't complete this task, because you're not signed in.
Comments (3)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Altavista360
Level 1
yesterday, 22:33
Be careful with the formula used to calculate the total cost. It should be logical, given that the discount is specified as a percentage:
TotalCost = (itemPrice * itemCount) * (1 - discount / 100)
The validation requires something different, according to the requirements.
Abbas Sadiq
Level 2 , Pakistan
7 January, 18:36
This was helpful for me and very Important task for me
Anonymous #11719543
Level 1 , Tel Aviv, Israel
16 November 2025, 15:32
kk