Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #1
- usd_to_bgn_rate = 1.79549
- usd_amount = float(input("Enter the amount in USD: "))
- bgn_amount = usd_amount * usd_to_bgn_rate
- print(bgn_amount)
- #2
- import math
- radians = float(input())
- degrees = radians * 180 / math.pi
- print(degrees)
- #3
- deposited_amount = float(input())
- term_of_deposit = int(input())
- annual_interest_rate = float(input())
- amount = deposited_amount + term_of_deposit * (deposited_amount * (annual_interest_rate / 100)) / 12
- print(amount)
- #4
- total_pages = int(input())
- pages_per_hour = int(input())
- days_to_finish = int(input())
- total_hours_needed = total_pages / pages_per_hour
- hours_per_day = total_hours_needed / days_to_finish
- print(round(hours_per_day))
- #5
- pens_price_per_pack = 5.80
- markers_price_per_pack = 7.20
- board_cleaner_price_per_liter = 1.20
- num_pens_packs = int(input())
- num_markers_packs = int(input())
- liters_board_cleaner = int(input())
- discount_percentage = int(input())
- total_price = (num_pens_packs * pens_price_per_pack) + (num_markers_packs * markers_price_per_pack) + (liters_board_cleaner * board_cleaner_price_per_liter)
- discount_amount = total_price * (discount_percentage / 100)
- final_price = total_price - discount_amount
- print(final_price)
- #6
- nylon_needed = int(input())
- paint_needed = int(input())
- thinner_needed = int(input())
- work_hours = int(input())
- nylon_cost = nylon_needed * 1.50
- paint_cost = paint_needed * 14.50
- thinner_cost = thinner_needed * 5.00
- extra_nylon_cost = 2 * 1.50
- extra_paint_cost = paint_needed * 0.1 * 14.50
- bags_cost = 0.40
- material_cost = nylon_cost + paint_cost + thinner_cost + extra_nylon_cost + extra_paint_cost + bags_cost
- craftsmen_cost = material_cost * 0.3 * work_hours
- total_cost = material_cost + craftsmen_cost
- print(total_cost)
- #7
- chicken_menu_price = 10.35
- fish_menu_price = 12.40
- vegetarian_menu_price = 8.15
- delivery_price = 2.50
- num_chicken_menus = int(input())
- num_fish_menus = int(input())
- num_vegetarian_menus = int(input())
- total_menu_price = (num_chicken_menus * chicken_menu_price) + (num_fish_menus * fish_menu_price) + (num_vegetarian_menus * vegetarian_menu_price)
- dessert_price = 0.20 * total_menu_price
- total_order_price = total_menu_price + dessert_price + delivery_price
- print(total_order_price)
- #8
- training_fee = int(input())
- sneakers_price = training_fee * 0.60
- basketball_team_price = sneakers_price * 0.80
- basketball_price = basketball_team_price / 4
- accessories_price = basketball_price / 5
- total_expenses = training_fee + sneakers_price + basketball_team_price + basketball_price + accessories_price
- print(total_expenses)
- #9
- length = int(input())
- width = int(input())
- height = int(input())
- percentage = float(input())
- # volume_dm3 = (length / 10) * (width / 10) * (height / 10)
- volume_dm3 = length * width * height / 1000
- water_volume = volume_dm3 * (1 - (percentage / 100))
- print(f"{water_volume:.2f}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement