Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 01. USD to BGN
- usd = float(input())
- bgn = usd * 1.79549
- print(bgn)
- ===========================================================
- 02. Radians to Degrees
- from math import pi
- rad = float(input())
- # градус = радиан * 180 / π
- degrees = rad * 180 /pi
- print(degrees)
- =============================================================================================
- 03. Deposit Calculator
- deposit_amount = float(input())
- months = int(input())
- annual_rate = float(input())
- # сума = депозирана сума + срок на депозита * ((депозирана сума * годишен лихвен процент ) / 12)
- # result = deposit_amount + months * ((deposit_amount * annual_rate) / 12)
- per_year = deposit_amount * (annual_rate / 100)
- per_month = per_year / 12
- total_sum = deposit_amount + (months * per_month)
- print(total_sum)
- ===========================================================================================================
- 04. Vacation books list
- total_count_pages = int(input())
- pages_hour = int(input())
- days = int(input())
- total_hours = total_count_pages // pages_hour
- hours_per_day = total_hours // days
- print(hours_per_day)
- ===========================================================================================================
- 05. Supplies for School
- pens_count = int(input())
- markers_count = int(input())
- detergent_lt = int(input())
- percent_discount = int(input())
- price_pens = pens_count * 5.80
- price_markers = markers_count * 7.20
- price_detergent = detergent_lt * 1.20
- total_price = price_pens + price_markers + price_detergent
- discount = total_price * (percent_discount / 100)
- price_with_discount = total_price - discount
- print(price_with_discount)
- ===========================================================================================================
- 06. Repainting
- nylon = int(input())
- paint = int(input())
- razr = int(input())
- hours_workers = int(input())
- price_nylon = (nylon + 2) * 1.5
- price_paint = (paint * 1.10) * 14.5
- price_razr = razr * 5
- sum_materials = price_nylon + price_paint + price_razr + 0.40
- sum_workers = (sum_materials * 0.30) * hours_workers
- total_sum = sum_materials + sum_workers
- print(total_sum)
- ===========================================================================================================
- 07. Food Delivery
- chicken_menu_count = int(input())
- fish_menu_count = int(input())
- veg_menu_count = int(input())
- price_chicken_menu = chicken_menu_count * 10.35
- price_fish_menu = fish_menu_count * 12.4
- price_veg_menu = veg_menu_count * 8.15
- all_menu_sum = price_chicken_menu + price_fish_menu + price_veg_menu
- dessert = all_menu_sum * 0.20
- total_sum = all_menu_sum + dessert + 2.5
- print(total_sum)
- ===========================================================================================================
- 08. Basketball Equipment
- year_tax = int(input())
- shoes = year_tax * 0.60
- suit = shoes * 0.80
- ball = suit / 4
- acc = ball / 5
- total_sum = shoes + suit + ball + acc + year_tax
- print(total_sum)
- ===========================================================================================================
- 09. Fish Tank
- length = int(input())
- width = int(input())
- height = int(input())
- percent = float(input())
- volume = length * width * height
- total_litres = volume / 1000
- percent_lt = total_litres * (percent / 100)
- needed_litres = total_litres - percent_lt
- print(needed_litres)
- ===========================================================================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement