Advertisement
veronikaaa86

First Steps - Python

Jul 3rd, 2022 (edited)
830
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.71 KB | None | 0 0
  1. 01. USD to BGN
  2.  
  3. usd = float(input())
  4. bgn = usd * 1.79549
  5. print(bgn)
  6. ==========================================
  7. 02. Radians to Degrees
  8.  
  9. from math import pi
  10.  
  11. radians = float(input())
  12. degrees = radians * 180 / pi
  13. print(degrees)
  14. ==========================================
  15. 03. Deposit Calculator
  16.  
  17. deposit_amount = float(input())
  18. months = int(input())
  19. annual_rate = float(input())
  20.  
  21. per_year = deposit_amount * (annual_rate / 100)
  22. per_month = per_year / 12
  23. total_sum = deposit_amount + (months * per_month)
  24.  
  25. print(total_sum)
  26. ==========================================
  27. 04. Vacation books list
  28.  
  29. total_count_pages = int(input())
  30. pages_hour = int(input())
  31. days = int(input())
  32.  
  33. total_hours = total_count_pages // pages_hour
  34. hours_per_day = total_hours // days
  35.  
  36. print(hours_per_day)
  37. ==========================================
  38. 05. Supplies for School
  39.  
  40. pen_count = int(input())
  41. marker_count = int(input())
  42. detergent_lt = int(input())
  43. discount_percent = int(input())
  44.  
  45. price_pen = pen_count * 5.80
  46. price_markers = marker_count * 7.20
  47. price_detergent = detergent_lt * 1.20
  48. all_price = price_pen + price_markers + price_detergent
  49.  
  50. discount = all_price * (discount_percent / 100)
  51. total_price = all_price - discount
  52.  
  53. print(total_price)
  54. ==========================================
  55. 06. Repainting
  56.  
  57. nylon = int(input())
  58. paint = int(input())
  59. razr = int(input())
  60. hours_workers = int(input())
  61.  
  62. price_nylon = (nylon + 2) * 1.5
  63. price_paint = (paint * 1.1) * 14.5
  64. price_razr = razr * 5
  65.  
  66. sum_materials = price_nylon + price_paint + price_razr + 0.40
  67.  
  68. sum_workers = (sum_materials * 0.30) * hours_workers
  69. total_sum = sum_materials + sum_workers
  70.  
  71. print(total_sum)
  72. ==========================================
  73. 07. Food Delivery
  74.  
  75. chicken_menu_count = int(input())
  76. fish_menu_count = int(input())
  77. veg_menu_count = int(input())
  78.  
  79. price_chicken = chicken_menu_count * 10.35
  80. price_fish = fish_menu_count * 12.4
  81. price_veg = veg_menu_count * 8.15
  82.  
  83. all_menu_price = price_chicken + price_fish + price_veg
  84.  
  85. dessert = all_menu_price * 0.20
  86. total_sum = all_menu_price + dessert + 2.5
  87.  
  88. print(total_sum)
  89. ==========================================
  90. 08. Basketball Equipment
  91.  
  92. year_tax = int(input())
  93.  
  94. shoes_price = year_tax - (year_tax * 0.40)
  95. suit_price = shoes_price * 0.80
  96. ball_price = suit_price / 4
  97. acc_price = ball_price / 5
  98.  
  99. total_sum = shoes_price + suit_price + ball_price + acc_price + year_tax
  100.  
  101. print(total_sum)
  102. ==========================================
  103. 09. Fish Tank
  104.  
  105. length = int(input())
  106. width = int(input())
  107. height = int(input())
  108. percent = float(input())
  109.  
  110. volume = length * width * height
  111.  
  112. total_lt = volume / 1000
  113. acc_lt = total_lt * (percent / 100)
  114.  
  115. result = total_lt - acc_lt
  116.  
  117. print(result)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement