2nd Speaker:
num1 = float(input("Enter the first number: "))
num2 = float(input("Enter the second number: "))
addition = num1 + num2
subtraction = num1 - num2
multiplication = num1 * num2
# Display results
print("\nResults:")
print("Addition =", addition)
print("Subtraction =", subtraction)
print("Multiplication =", multiplication)
if num2 != 0:
division = num1 / num2
print("Division =", division)
else:
print("Division = Undefined (cannot divide by zero)")
3rd Speaker
celsius = float(input("Enter temperature in Celsius: "))
fahrenheit = (celsius * 9/5) + 32
print("Temperature in Fahrenheit is", fahrenheit)
4th Speaker
# restaurant billing system
# prices
burger_price = 250
fries_price = 200
drink_price = 30
vat_rate= 0.05
service_charge_rate= 0.08
# menu display
print("Menu")
print("1. Burger- 250 taka")
print("2. French fries- 200 taka")
print("3. Drinks (Coke/Sprite)- 30 taka each")
# taking orders
burger_qty = int(input("how many burgers?: "))
fries_qty = int(input("how many fries?: "))
print("\n Enter drink quantities")
coke_qty = int(input("how many servings of coke?"))
sprite_qty = int(input("how many servings of sprite?"))
# cost calculation
burger_total = burger_price*burger_qty
fries_total = fries_price*fries_qty
drink_total = (coke_qty+sprite_qty)*drink_price
subtotal = burger_total + fries_total + drink_total
vat = subtotal*vat_rate
service_charge = subtotal*service_charge_rate
total_cost = subtotal + vat + service_charge
#displaying bill
print("\n------Bill Details------")
print("burgers ordered: " + str(burger_qty))
print("fries ordered: " + str(fries_qty))
print("coke ordered: " + str(coke_qty))
print("sprite ordered: " + str(sprite_qty))
print("\nburger cost =", str(burger_total) + " taka")
print("fries cost =", str(fries_total) + " taka")
print("drink cost =", str(drink_total) + " taka")
print("subtotal =", str(subtotal) + " taka")
print("applicable VAT =", str(vat) + "taka")
print("applicable service charge =", str(service_charge) + "taka")
print("\ntotal bill: ", + str(total_cost) +" taka")
print("thank you for ordering!!")
5th Speaker
employee = str(input("Enter Employee Name: "))
basic = float(input("Enter Basic Salary: "))
home = basic * 0.50
medical = basic * 0.20
transport = 1200
gross_salary = basic + home + medical + transport
tax = gross_salary * 0.10
pf = basic * 0.08
net_salary = gross_salary - tax - pf
print(f"Basic : {basic} tk")
print(f"Home Allowance : {home} tk")
print(f"Medical : {medical} tk")
print(f"Transport : {transport} tk")
print(f"Tax :-{tax} tk")
print(f"Provident Fund :-{pf} tk")
print(f"Your Account has been credited by BDT {net_salary}")