Advertisement
Guest User

Untitled

a guest
Apr 26th, 2023
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. Budged = float(input())
  2. Video = int(input())
  3. Processors = int(input())
  4. Ram = int(input())
  5. Video_price = Video*250
  6. Processors_price = float(Processors*(Video_price*0.35))
  7. Ram_price = float(Ram*(Video_price*0.10))
  8. Total_price = Video_price + Processors_price + Ram_price
  9. if Video > Processors:
  10. Total_price *= 0.85
  11. if Budged > Total_price:
  12. print(f"You have {Budged-Total_price:.2f} leva left!")
  13. else:
  14. print(f"Not enough money! You need {Total_price-Budged:.2f} leva more!")
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement