Advertisement
HristoBaychev

Repainting

Jan 22nd, 2023
661
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.60 KB | None | 0 0
  1. priceNylon = 1.50
  2. pricePaint = 14.50
  3. priceThinner = 5.00
  4. pricePack = 0.40
  5.  
  6. needNylon = int(input())
  7. needPaint = int(input())
  8. needThinner = int(input())
  9. hoursForWorkers = int(input())
  10.  
  11. totalNylon = needNylon + 2
  12. totalPaint = needPaint * 0.10
  13.  
  14.  
  15. sumForNylon = totalNylon * priceNylon
  16. sumForPaint = (needPaint + totalPaint) * pricePaint
  17. sumForThinner = needThinner * priceThinner
  18.  
  19. totalSumForMaterials = sumForNylon + sumForPaint + sumForThinner + pricePack
  20.  
  21. sumForWorkers = (totalSumForMaterials * 0.30) * hoursForWorkers
  22.  
  23. finalPrice = totalSumForMaterials + sumForWorkers
  24.  
  25. print(finalPrice)
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement