Advertisement
HristoBaychev

Supplies for School

Jan 22nd, 2023
746
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.52 KB | None | 0 0
  1. priceOfPen = 5.80
  2. priceOfMark = 7.20
  3. chemicalPerLiter = 1.20
  4.  
  5. packOfPen = int(input())
  6. packOfMark = int(input())
  7. litreChemical = int(input())
  8. percentDiscount = int(input()) / 100
  9.  
  10.  
  11. totalPriceForPen = priceOfPen * packOfPen
  12. totalPriceForMark = priceOfMark * packOfMark
  13. totalPriceForChemical = chemicalPerLiter * litreChemical
  14.  
  15. totalPriceForAll = totalPriceForPen + totalPriceForMark + totalPriceForChemical
  16.  
  17. priceAfterDiscount = totalPriceForAll - (totalPriceForAll * percentDiscount)
  18.  
  19. print(priceAfterDiscount)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement