Advertisement
boyan1324

23401

Oct 18th, 2023
676
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.78 KB | None | 0 0
  1. #1
  2. usd = float(input("Enter the amount of dollars to convert: "))
  3. bgn = usd * 1.79549
  4. print (bgn)
  5.  
  6. #2
  7. from math import pi
  8. from math import floor
  9. radians = float(input("Enter the radians: "))
  10. degrees = radians * 180 / pi
  11. #this rounds/floors the degrees so it isnt a decimal
  12. print(floor(degrees))
  13.  
  14. #3
  15. deposit = int(input("Enter the deposit: "))
  16. deposit_term = int(input("Enter the deposit term: "))
  17. year_interest = int(input("Enter the year interest: "))
  18. total_sum = deposit + deposit_term * (year_interest / 12)
  19. print(total_sum)
  20.  
  21. #4
  22. pages_all = int(input("Enter all pages: "))
  23. pages_for_hour = int(input("enter the pages for a hour: "))
  24. days_needed = int(input("Enter the days needed: "))
  25. equation = round(pages_all / days_needed / pages_for_hour)
  26. print(equation)
  27.  
  28. #5
  29. pen_pack_amount = int(input("Enter the pen pack amount: "))
  30. marker_pack_amount = int(input("Enter the marker pack amount: "))
  31. cleaning_fluid_amount = int(input("Enter the cleaning fluid amount: "))
  32. discount = int(input("Enter the discount: "))
  33.  
  34. pen_price = 5.8 * pen_pack_amount
  35. marker_price = 7.2 * marker_pack_amount
  36. cleaning_fluid_price = 1.2 * cleaning_fluid_amount
  37. sum = pen_price + marker_price + cleaning_fluid_price
  38.  
  39. total =  sum - discount / 100 * sum
  40. print(total)
  41.  
  42. #6
  43. nylon_p = 1.50
  44. paint_p = 14.50
  45. thinner_p = 5.0
  46. bags_p = 0.40
  47.  
  48. nylon = int(input("nylon: ")) + 2
  49. paint = int(input("paint: ")) * 1.1
  50. thinner = int(input("thinner: "))
  51. hours = int(input("hours: "))
  52.  
  53. final_nylon_price = nylon * nylon_p
  54. final_paint_price = paint * paint_p
  55. final_thinner_price = thinner * thinner_p
  56. total = final_nylon_price + final_paint_price + final_thinner_price + bags_p
  57.  
  58. workers_per_hour = total * 0.3
  59. total_price_workers = workers_per_hour * hours
  60.  
  61. money_for_rework = total_price_workers + total
  62. print(money_for_rework)
  63.  
  64. #7
  65. chicken_menu_price = 10.35
  66. fish_menu_price = 12.40
  67. veg_menu_price = 8.15
  68.  
  69. delivery = 2.50
  70.  
  71. chicken_menus = int(input("chicken menus: "))
  72. fish_menus = int(input("fish menus: "))
  73. veg_menus = int(input("vegetarian menus: "))
  74.  
  75. total_menus = chicken_menus * chicken_menu_price + fish_menus * fish_menu_price + veg_menus + veg_menu_price
  76.  
  77. dessert_price = total_menus * 0.20
  78.  
  79. total = total_menus + dessert_price + delivery
  80. print(f"{total:.2f}")
  81.  
  82. #8
  83. tax = float(input("Enter the tax: "))
  84. shoes = tax - (tax * 0.4)
  85. clothes = shoes - (shoes * 0.2)
  86. ball = clothes * 0.25
  87. accessories = ball * 0.2
  88. total = tax + shoes + clothes + ball + accessories
  89. print(f"Pesho has need {total} leva for treaning!")
  90.  
  91. #9
  92. length = float(input("Enter the length: "))
  93. width = float(input("Enter the width: "))
  94. height = float(input("Enter the height: "))
  95. percent = float(input("Enter the percents: ")) / 100
  96. obem = length * width * height
  97. litres_in_pool = obem - obem * percent
  98. print(litres_in_pool)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement