Advertisement
veronikaaa86

First Steps In Coding - Python

Feb 6th, 2022 (edited)
965
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.37 KB | None | 0 0
  1. 01. USD to BGN
  2.  
  3. usd = float(input())
  4.  
  5. bgn = usd * 1.79545
  6.  
  7. print(bgn)
  8.  
  9. =========================================================
  10. 02. Radians to Degrees
  11.  
  12. from math import pi
  13.  
  14. radians = float(input())
  15.  
  16. degrees = radians * 180 / pi
  17.  
  18. print(degrees)
  19. ============================================================
  20. 03. Deposit Calculator
  21.  
  22. deposit_amount = float(input())
  23. months = int(input())
  24. annual_rate = float(input())
  25.  
  26. per_year = deposit_amount * (annual_rate / 100)
  27. per_month = per_year / 12
  28. total_sum = deposit_amount + (months * per_month)
  29.  
  30. print(total_sum)
  31.  
  32. ============================================================
  33. 04. Vacation books list
  34.  
  35. total_count_pages = int(input())
  36. pages_hour = int(input())
  37. count_days = int(input())
  38.  
  39. total_hours = total_count_pages // pages_hour
  40. hours_per_day = total_hours // count_days
  41.  
  42. print(hours_per_day)
  43. ============================================================
  44. 05. Supplies for School
  45.  
  46. pens_count = int(input())
  47. markers_count = int(input())
  48. detergent_lt = int(input())
  49. percent = int(input())
  50.  
  51. price_pens = pens_count * 5.80
  52. price_markers = markers_count * 7.20
  53. price_detergent = detergent_lt * 1.20
  54.  
  55. total_price = price_pens + price_markers + price_detergent
  56. final_price = total_price - (total_price * (percent / 100))
  57.  
  58. print(final_price)
  59.  
  60. ============================================================
  61. 06. Repainting
  62.  
  63. nylon = int(input())
  64. paint = int(input())
  65. razr = int(input())
  66. hours = int(input())
  67.  
  68. nylon_price = (nylon + 2) * 1.5
  69. paint_price = (paint * 1.10) * 14.5
  70. razr_price = razr * 5
  71.  
  72. total_sum = nylon_price + paint_price + razr_price + 0.40
  73. sum_workers = (total_sum * 0.3) * hours
  74.  
  75. final_sum = total_sum + sum_workers
  76.  
  77. print(final_sum)
  78.  
  79. ============================================================
  80. 08. Basketball Equipment
  81.  
  82. year_tax = int(input())
  83.  
  84. shoes = year_tax - (year_tax * 0.40)
  85. suit = shoes - (shoes * 0.20)
  86. ball = suit / 4
  87. acc = ball / 5
  88.  
  89. total_expenses = year_tax + shoes + suit + ball + acc
  90.  
  91. print(total_expenses)
  92.  
  93. ============================================================
  94. 09. Fish Tank
  95.  
  96. length = int(input())
  97. width = int(input())
  98. height = int(input())
  99. percent = float(input())
  100.  
  101. volume = length * width * height
  102. total_liters = volume / 1000
  103. percent_liters = total_liters * (percent / 100)
  104.  
  105. needed_liters = total_liters - percent_liters
  106.  
  107. print(needed_liters)
  108.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement