Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #1
- usd = float(input("Enter the amount of dollars to convert: "))
- bgn = usd * 1.79549
- print (bgn)
- #2
- from math import pi
- from math import floor
- radians = float(input("Enter the radians: "))
- degrees = radians * 180 / pi
- #this rounds/floors the degrees so it isnt a decimal
- print(floor(degrees))
- #3
- deposit = int(input("Enter the deposit: "))
- deposit_term = int(input("Enter the deposit term: "))
- year_interest = int(input("Enter the year interest: "))
- total_sum = deposit + deposit_term * (year_interest / 12)
- print(total_sum)
- #4
- pages_all = int(input("Enter all pages: "))
- pages_for_hour = int(input("enter the pages for a hour: "))
- days_needed = int(input("Enter the days needed: "))
- equation = round(pages_all / days_needed / pages_for_hour)
- print(equation)
- #5
- pen_pack_amount = int(input("Enter the pen pack amount: "))
- marker_pack_amount = int(input("Enter the marker pack amount: "))
- cleaning_fluid_amount = int(input("Enter the cleaning fluid amount: "))
- discount = int(input("Enter the discount: "))
- pen_price = 5.8 * pen_pack_amount
- marker_price = 7.2 * marker_pack_amount
- cleaning_fluid_price = 1.2 * cleaning_fluid_amount
- sum = pen_price + marker_price + cleaning_fluid_price
- total = sum - discount / 100 * sum
- print(total)
- #6
- nylon_p = 1.50
- paint_p = 14.50
- thinner_p = 5.0
- bags_p = 0.40
- nylon = int(input("nylon: ")) + 2
- paint = int(input("paint: ")) * 1.1
- thinner = int(input("thinner: "))
- hours = int(input("hours: "))
- final_nylon_price = nylon * nylon_p
- final_paint_price = paint * paint_p
- final_thinner_price = thinner * thinner_p
- total = final_nylon_price + final_paint_price + final_thinner_price + bags_p
- workers_per_hour = total * 0.3
- total_price_workers = workers_per_hour * hours
- money_for_rework = total_price_workers + total
- print(money_for_rework)
- #7
- chicken_menu_price = 10.35
- fish_menu_price = 12.40
- veg_menu_price = 8.15
- delivery = 2.50
- chicken_menus = int(input("chicken menus: "))
- fish_menus = int(input("fish menus: "))
- veg_menus = int(input("vegetarian menus: "))
- total_menus = chicken_menus * chicken_menu_price + fish_menus * fish_menu_price + veg_menus + veg_menu_price
- dessert_price = total_menus * 0.20
- total = total_menus + dessert_price + delivery
- print(f"{total:.2f}")
- #8
- tax = float(input("Enter the tax: "))
- shoes = tax - (tax * 0.4)
- clothes = shoes - (shoes * 0.2)
- ball = clothes * 0.25
- accessories = ball * 0.2
- total = tax + shoes + clothes + ball + accessories
- print(f"Pesho has need {total} leva for treaning!")
- #9
- length = float(input("Enter the length: "))
- width = float(input("Enter the width: "))
- height = float(input("Enter the height: "))
- percent = float(input("Enter the percents: ")) / 100
- obem = length * width * height
- litres_in_pool = obem - obem * percent
- print(litres_in_pool)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement