tip-calculator-start

Not run yet
1269 runs
This repl has no cover image
Details
Created on Jan 27, 2020
17 Reactions
67comments
to comment
Abhinovdutta4 days ago

#If the bill was $150.00, split between 5 people, with 12% tip.#Each person should pay (150.00 / 5) 1.12 = 33.6#Round the result to 2 decimal places.print("Welcome to the tip calculator.")bill = input("What was the total bill? $")tip = input("What percentage tip would you like to give? 10, 12 or 15?")person = input("How many people to split the bill?")percentage = (float(bill) int(tip)) / 100total = int(percentage) + float(bill)amount = int(total) / int(person)final = round(amount, 2)print (f"Each person should pay: ${final}")

miguelex4 days ago

print("Calculadora de propinas")bill = float(input("Cual es el total de la factura? "))tip = int(input("Que porcentaje vas a aplicar? 10,12 o 15?" ))people = int(input("Entre cuantas personas se reparte la factura? "))

percent = tip / 100total = bill * (1 + percent)parte = round(total/people, 2)print(f"Cada persona pagara {parte} dolares")

iamanshuman6 days ago

print("Welcome to the tip calculator")bill=float(input("What is your total bill?\n $"))people=int(input("How many people?\n"))bill_per_person= float(bill)/int(people)print(f"Per person bill is {bill_per_person}")tip = float(input("How much tip you want to give(%)?\n"))tippercent=(bill_per_person/100)*tiptip1=float(bill_per_person) + float(tippercent)

totalbill=print(tip1)

print(f"Your total bill is {tip1}")

IanJackson31 week ago

print("Welcome to the tip calculator!\n\n")

bill_amount = float(input("What was the total bill? "))

tip_amount = int(input("\nHow much tip would you like to give? 10, 12, or 15? " ))

people = int(input("\nHow many people to split the bill? "))

tip_percentage = tip_amount / 100

tip = bill_amount * tip_percentagebill = (bill_amount + tip) / people

print(f"\nThe bill total for {people} people is $" + "{:.2f}".format(bill))

abix0x02 weeks ago

print ("welcome to the tip calculator!! \n")

bill = input ("how much was the bill? ")Percentage = input ("what percentage of tip would you like to give? 10,12 or 15? ")people = input ("how many people are to split the bill? ")

new_bill = float (bill)tips_Percentage = int (Percentage) / 100 #1.12tips_Percentage += 1 #if you want to add the 1 to the percentagesemifinal_percentage = float (new_bill) (tips_Percentage) #(150 1.12)final_percentage = (semifinal_percentage) / int (people) #(150 * 0.12) / 5

new_peoples_percentage = round (final_percentage, 2)final_percentage *= float(people)print (f"each person should pay [${new_peoples_percentage}] then the total tip would be: $[{final_percentage}] \n")

Pavanha4412 weeks ago

print("Welcome to tip calculator")totalamt = input("total amount to be paid")print(f" totalamount{totalamt}")people=input("Total no of person")tip = input("Tip needed to the waiter:")tp=int(tip)/100*int(totalamt)Totalrupee = int(tp) + int(totalamt)print(f"Total mt to be paid={Totalrupee}")ep = (float(Totalrupee)/float(people))print(f"Each person to be paid{ep}Rs")

akki21072 weeks ago

print("Welcome to the Tip calculator")total_bill = float(input("What was the total Bill? "))bill_tip = int(input("What percentage tip would you like to give 10,12 or 15: "))final_bill_with_tip=(total_bill+(total_bill/100)*bill_tip)peopel_biil=int(input("How many people to split the bill? "))share_bill="{:.2f}".format((round((final_bill_with_tip/peopel_biil),2)))final_bill=print(f"Each person will pay:$ {share_bill}")

akki21072 weeks ago

print("Welcome to the Tip calculator")total_bill = float(input("What was the total Bill? "))bill_tip = int(input("What percentage tip would you like to give 10,12 or 15: "))final_bill_with_tip=(total_bill+(total_bill/100)*bill_tip)peopel_biil=int(input("How many people to split the bill? "))share_bill=round((final_bill_with_tip/peopel_biil),2)final_bill=print(f"Each person will pay: {share_bill}")

General262 weeks ago

print("Welcome to the tip calculator")bill=float(input("how much did you spend?"))tip=float(input("what percentage of tip you like to give? 10, 12 or 15?"))people_paying=float(input("how many people are spliting this bill?"))tip_value=bill*(tip/100)total=(bill+tip_value)/people_payingresult=round((total),2)print(f"each person should pay: {result}")

harshgautam54212 weeks ago

print("welcome to the tip calculator")total_bill = input("what's the bill\n")percent = input("what percentage tip would you like to give 10 12 or 15 ?")people = input("in how many people you want to devide your bill")

pay = (float(total_bill) / int(percent)) / int(people)print(f" each of you have to pay : {pay}$")

RyanisSoup2 weeks ago

print("Welcome to the tip calculator")

bill= float(input("What was the total bill? "))percent= float(input("What percentage tip would you like to give? 10, 12, or 15? "))split= float(input("How many people to split the bill? "))tip = ((percent/100)*bill)

pay = "{:.2f}".format((bill+tip)/split)

print(f"Each person should pay {pay}")

FloridaMiami3 weeks ago

haha lol

FloridaMiami3 weeks ago
''' the tip calculator '''

amount=float(input("enter the total bill amount: "))rate = int(input("enter the % tip you want to give. 10,12 or 15 ?: "))no_of_people= int(input("how many people are there: "))tip= (amount*(rate/100))total_bill= (amount+tip)bill_per_person= round(total_bill/(no_of_people),2)print(f"the bill of 1 person is $ {bill_per_person}")

karanrathour3 weeks ago
this is a programme of tip claculator

total_bill = float(input('enter the total bill: '))tip = int(input('how much tip would you like to give: '))friend = int(input('how many people in dinner: '))

total_pay = ((total_bill + (total_bill (tip .01))) / friend )

print(f"this is a total dollar each person to pay {total_pay} $")

IamZaheerahmad3 weeks ago

print("Welcome to the tip calculator! ")

bill = input("What was the total Bill? ")

tip = input("What percentage tip you would like to give? 10, 12 or 15 ")

tip1 = float(tip) / 100

total_tip = float(bill) * tip1

total_bill = float(bill) + total_tip

people = input("How many people to split the bill? ")

people_int = int(people)

splited_bill = total_bill / people_int

rounded_split_bill = round(splited_bill ,2)

result = f"Each Person Should Pay: $ {rounded_split_bill}"

print(result)

Alduin03463 weeks ago

bill=float(input("What was the total bill?"))

percentage=int(input("What was the percentage 10,12 or 15?"))

person=int(input("How many people to split bill?"))

each_bill=round((bill+bill*(percentage/100))/person,2)

print(f"Each person should pay ${each_bill}")

aponaex4 weeks ago

print("Welcome to the tip calculator!")

#collecting data

bill = input("What was the total bill? $")

bill = float(bill)

tip = input("What percentage tip would you like to give? 10, 12 or 15? ")

tip = float(tip)

people = input("How many people to split the bill? ")

people = int(people)

#program starts

org_tip = tip / 100 + 1

org_bill = bill * org_tip

pay = round(org_bill / people, 2)

print(f"Each person should pay: ${pay}")

ZhangNikki1 month ago

bill = float(input ("What was the total bill?\n"))

percentage = float(input ("What percentage tip would you like to give? 10, 12, or 15?\n"))

num_ppl = int (input ("How many people to split the bill?\n"))

result = (bill * (1 + percentage / 100 )/ num_ppl)

finalresult = "{:.2f}".format (result) # instead of finalresult = round (result,2)

print (f"Each person should pay: \n {finalresult}")

YashikaSachdeva1 month ago

print("Welcome to the tip calculator. ")

bill = input("What was the total bill? $")

bill = float(bill)

tip = input("What percentage tip would you like to give? 10, 12, or 15? ")

tip = int(tip)

people = input("How many people to split the bill? ")

people = int(people)

tip = (1 + tip)/100

total_bill = bill * tip

each_pay = total_bill / people

each_pay = round(each_pay , 2)

print(f"Each person should pay: ${each_pay}")

BryceEvans11 month ago

total_bill = input('What is the total price of the meal: ')people = input('How many people are splitting the bill: ')tip = input('How much do you wish to tip 10%, 12% or 15%: ')tip_two = (int(tip) / 100) + 1final_price = (float(total_bill) / int(people)) * float(tip_two)print(f'Each person should pay {round(final_price, 2)}.')

AbhijeetKumar131 month ago

print(" Welcome to the tip calculator :")bill = input(" What is the total bill ? ")people = input(" How many people will share this bill ? ")tip = input(" What percentage tip would you like to give 10% 12% 15% ? ")

billAmount = float(bill)peopleShare = int(people)tipPercent = int(tip)

totalBill = billAmount+(billAmount*(tipPercent/100))billSplitAmount = round((totalBill/peopleShare),2)print(f"Total bill should be pay : {totalBill}")print(f"Each people will pay : {billSplitAmount}")

MrRishi1 month ago

print("Welcome to the tip calculator")bill = float(input("What was the total bill? $"))percentage = int(input("What percentage tip would you like to give? 10%, 12%, or 15% "))

people = int(input("How many people to split the bill? "))

tip_percentage = (bill/people) * (1+(percentage/100 ))

answer = str(round(tip_percentage, 2))print(f"Each person sould pay: {answer} ")

Zoatc1 month ago

import decimal

print("Welcome to the tip calculator")total_bill = input("What was the total bill? $")

tip_perc = input("What percentage tip would you like to give? 10, 12, or 15?")

people_spilt = input("How many people to spilt the bill?")

total_bill = float(total_bill)

tip_perc = float(tip_perc)

people_spilt = float(people_spilt)

total_bill_with_tip = ((tip_perc/100) * total_bill + total_bill)

each_pay = total_bill_with_tip / people_spilt

each_pay = decimal.Decimal(each_pay)

each_pay = round(each_pay, 2)

print(f"Each person should pay: ${each_pay}")

benjaminmann31 month ago

print('Welcome to the tip calculator')a = input('How much was the bill? ')b = input('What percentage tip would you like to leave? 10 , 12, or 15? ')c = input('How many people are splitting the bill? ')d = (int(a)*(1 + int(b)/100))/int(c)print(f'Each person should pay {round(d, 2)}')

KovarthanBalaji1 month ago

print("welcome to the tip calculator")

bill = input("What is the bill amount?\n")

tip_percent = input("How much you want to tip? 10,12,15\n")

person = input("How many are splitting the bills\n")

contribution = float((float(bill)+(float(bill)*float(tip_percent)/100))/int(person))

output = (round(float(contribution),2))

print(f"Contribution per head is Rs. {output}")

SajalTyagiTyagi1 month ago

print("Welcome to the tip calculator")

bill = input("What was the total bill? $")

percent = input("What percent tip would you like to give? 10, 12 or 15? ")

people = input("How many people to split the bill? ")

total_tip = float(bill) * (int(percent)/100)

total_bill = float(bill) + total_tip

split = total_bill / int(people)

pay= "{:.2f}".format(round(split, 2))

print("Each person should pay: $" + str(pay))

Khudrun1 month ago

print("Welcome to the tip calculator!")bill = input("What was the total bill?\n")tip = input("What percentage tip would you like to give? 10, 12 or 15?\n")num_people = input("How many people split the bill?\n")

bill_as_flt = float(bill)tip_percent = float(tip)num_people_as_flt = float(num_people)tip_percent_as_flt_div = tip_percent / 100total_bill_as_flt = bill_as_flt + (bill_as_flt* tip_percent_as_flt_div)

print(f'Each person should pay: ${round(total_bill_as_flt / num_people_as_flt, 2)}')

JLblnk1 month ago

print("Welcome to the tip calculator.")

total = float(input("What was the total bill? $"))

percentage = int(input("What percentage tip would you like to give? 10, 12 or 15? "))

people = int(input("How many people to split the bill? "))

each = round(total * ( 1 + percentage / 100 )/people,2)

print(f"Each person should pay: ${each}")

asteclik2 months ago

print("Welcome to the tip calculator")

bill=float(input("What was total bill? "))

percent=int(input("What percentage tip would you like to give? "))

people=int(input("How many people to split the bill? "))

pay="{:.2f}".format((bill * (percent/100) + bill )/ people )

print(f"Each person should pay: {pay}")

AriRamadhan12 months ago

print("Welcome to the tip calculator")total_bill = float(input("What was the total bill ? $"))tip = float(input("What Percentage tip would you like to give? 10,12 or,15 ? "))split_bill = float(input("How many people to split the bill? "))

total_bill_tip = (total_bill)*(tip/100) + (total_bill)bill_person = round((total_bill_tip)/(split_bill),2)bill_person = "{:.2f}".format(bill_person)

print(f"each person should pay ${bill_person}")

PhoenixMan2 months ago

print("Welcome to the tip calculator")

bill = float(input("What was the total bill? $"))

tip = int(input("What percentage tip would you like to give? 10, 12, or 15? "))

people = int(input("How many people to split the bill? "))

payable = round((bill * (1 + tip / 100) / people), 2)

print(f"Each person should pay: ${payable}")

TylerHatter2 months ago

print("Welcome to the tip calculator.")

total=float(input("What was the total bill?\n"))

tip=float(input("What percentage tip would you like to give?\n"))

tipPercentage=float("%.2f" % round((tip/100), 2))

totalBill=float("%.2f" % round(((total*tipPercentage)+total), 2))

numOfPeople=(input("How many people to split the bill?\n"))

print("Each person should pay: "+str(float("%.2f" % round ((totalBill/numOfPeople), 2))))

KhoaNguyen392 months ago

print("Welcome to the tip calculator for dummies!")

total = float(input("what was the total bill? $"))

perc_tip = int(input("What percentage tip would you like to give? Option: 10, 12, 15 or 20: "))

head = int(input("How many people to split the bill?"))

total_tip = total * (perc_tip / 100) + total

split = round(total_tip / head, 2)

print(f"Each person should pay: ${split}")

HemankRaj2 months ago

bill = input ("What is the total value of your bill? ")tip = input ("Percetage Amount of tip that you want to give (either 10%, 12% or 15%, )")share_amongst = input ("How many people will be sharing the bill? ")total_bill = float(bill) + (float(tip)/100)*float(bill)your_share = float(total_bill) / int(share_amongst)round (your_share,2)print (f"your share is {your_share}")

KristySheng2 months ago

print("Welcome to the tip calculator.")

a=float(input("What was the total bill? "))

b=int(input("What percentage tip would you like to give?10,12,or 15? "))

c=int(input("How many people to split the bill? "))

avgamount=round(a*(1+b/100)/c,2)

print("Each person should pay: $" + str(avgamount))

kubilaykaand2 months ago

print("Welcome to the tip calculator.")

a= float(input("What was the total bill? "))

b=(input("What percentage tip would you like to give? 10, 12, or 15? "))

c=int(input("How many people to split the bill? "))

if len(b)>2 and b[2]== "%" :

b=b[0]+b[1]

b=int(b)

else : b=int(b)

d = (a+a*b/100)/c

d="{:.2f}".format(d)

print(f"Each people should pay: {d}")

Meet882 months ago

print('Greetings! to the tip calculator')

#ask for the billuser_bill = float(input('What is your total bill: '))

#ask for the tip they want to giveuser_tip = float(input('What amount of tip would you like to give? 10,12 or 15? '))

#ask for the number of personsuser_person = int(input('How many persons are you there? '))

#calculationsfinal = (user_bill / user_person) * (1 + user_tip / 100)

#Display the payment each should payprint("Each person should pay " + str(round(final, 2)))

axcelblaze152 months ago

print("welcome to the tip calculator.")b = float(input("what was the total bill ? " ))t = int(input("what percent of the bill would you lyk to give as a tip? 10 ,12 ,13? "))p = int(input("total number of persons? "))result = b * (1+t/100)final_result = result / pamount = (round(final_result,2))print(f"each person should pay {amount} ")

aryanikumb2 months ago

print("Welcome to the tip calculator!")

bill = input("What was the total bill? $")

tip = input("What percentage tip would you like to give? 10, 12, or 15? ")

people = input("How many people to split the bill? ")

total_bill = float(bill) + (float(bill) * (float(tip)/100))

each = round(total_bill / int(people),2)

print(f"Each person should pay: ${each}")

JulianneGonzale2 months ago

print("Welcome to the tip calculator.")

total_bill = (float(input("What was the total bill? $")))

tip = (int(input("What percentage tip would you like to give? 10,12, or 15? ")))

people = (int(input("How many people to split the bill? ")))

group_total_tip = (total_bill * tip)/ 100

group_total_bill = group_total_tip + total_bill

final_result = group_total_bill / people

last_result = (round(final_result, 2))

print(f"Each person should pay: $ {last_result}")

balusukiran9992 months ago

bill=int(input('Enter Bill:'))people=int(input('No of people:'))discount=int(input('Enter discount:'))

calc=bill+(bill*discount/100)final=(round(calc/people,2))print(f'final result is {final}')

MagnusBerg2 months ago

print("Welcome to the tip calculator.")

totalbill = float(input("What was the total bill? $"))

percentage = int(input("What the percentage would you like to give? "))

people = int(input("How many people to split the bill? "))

bill = (round(totalbill * (1 + percentage / 100), 2))

sumoftips = round(bill / people, 2)

print(f"Each person should pay: ${sumoftips}")

MohammadHadi2 months ago

print("welcome to the tip calculator")

bill=int(input("what is the total bill :? "))

tip=int(input("what percentage tip would you like to give:? "))

tip_percentag=(tip*bill/100)

print(tip_percentag)

Total_bill=(bill+tip_percentag)

print(Total_bill)

people=int(input("how many people to slit the bill :? "))

print(people)

should_pay=(Total_bill/people)

include_tip=round((should_pay),2)

print(f"Each person should pay:{include_tip}")

tjanhvi5603 months ago

print('Welcome to the tip calculator.')

bill= float(input("What is the total bill? $"))

people = int(input("How many people to split the bill? "))

tip = int(input("What percentae tip would you like to give? 10, 12, or 15? "))

tip_percent = tip/100

total_tip_amount = bill*tip_percent

total_bill = bill + total_tip_amount

each_person = total_bill/people

final_amount = round(each_person,2)

print(f"Each person will pay {final_amount}")

caytejohntims3 months ago

print('Welcome to the tip calculator.')

bill = int(input('What is the total bill? $'))

percentage_tip = int(input('What percentage would you like to give? 10, 12 or 15? '))

people = int(input('How many people to split the bill? '))

total = (int(bill * percentage_tip / 100) + bill / people)

round_total = round(total, 2)

print(f"Each person should pay : $ {round_total}")

obgyneKenobi213 months ago

print("Welcome to Tip Calculator")

total_Bill = float(input("What was your total bill? $ "))percent_Tip = int(input("What percentage tip would you like to give? 10, 12, 15? "))people_Split = int(input ("How many people to split the bill? "))

total_Pay_each = (total_Bill + (total_Bill * (percent_Tip/100))) / people_Split

print(f"Each person should pay:$ {round(total_Pay_each, 2)} ")

DenM763 months ago

print('Welcome to the tip calculator!')total_bill = float(input('What was the total bill?'))percentage = float(input('What percentage tip would your like to give? 10, 12 or 15?'))people = float(input('How many people to split the bill?'))

distributed_bill = round(total_bill*(1+percentage/100)/people, 2)

print(f'Each person should pay: ${distributed_bill}')

rachid883 months ago

bill_cost = float(input("amount of bill cost to be split: "))

nbr_people= int(input("ho many people will share the bill: " ))

tip = int(input("the tip to take in account : "))

individual_part=bill_cost/nbr_people * (1+tip/100)

#individual_part=round(individual_part,2))# i don't know why it dosen't work

individual_part= "{:.2f}".format(individual_part) # i don't know why it works :)

print(f"it will take {individual_part} to each of the {nbr_people}" +f" people to pay the bill with the amount of {bill_cost} and {tip} as tip" ) # + to avoid a syntax of eol

MalavikaSDM3 months ago

print("Welcome to bill calculator")Bill=input("Enter the total bill amount")tip=input("Enter the tip amount you are willing to pay")split=input("How many people want to split the bill")

new_bill=int(Bill)*int(tip)/100new_bill1=new_bill+int(Bill)bill_tip=round(new_bill1/int(split),2)

print(f"The amount of money given by each individual is {bill_tip}")

babakay3 months ago

print ("Welcome to the Tip Calculator!")

TheBill = float( input ('What was the total bill?: $'))

Desired_Tip = float(input ('What percentage of tip would you like to give? 10, 12 or 15'))

Split_Btw = float(input('How many people are spliting this bill?'))total_Payable = TheBill*(1+(Desired_Tip/100))Payable_Per_Person = round(total_Payable/Split_Btw, 2)

print (f'Each person should pay ${Payable_Per_Person}')

andrey2k73 months ago

print("Welcome to the Tip Calculator.")bill = float(input("What was the total bill? "))per_tip = int(input("What percentage tip would you like to give? 10, 12, 15? "))people = int(input("How many people to split the bill? "))tip = bill * (1 + per_tip / 100)per_person = round((tip / people), 2)print(f"Each person should pay: ${per_person}")

szyszak1013 months ago

print("Welcome to the Tip calculator \n")

totalbill = input("What was the total bill? $ ")

tip = input("What percentage tip would you like to gift? 10, 12 or 15? ")

tip = float(totalbill) * float(tip)/100

split = input("How many people split the bill? ")

tip_split_among_people = tip / float(split)

totalbill = float(totalbill) / int(split) + tip_split_among_people

print(f"Person should pay: {round(totalbill, 2)} ")

nRaiyan3 months ago

print("Welcome to the tip calculator!")total_bill = float(input("What was the total bill?\n"))tip = float(input("What percentage tip would you like to give, 10%, 12% or 15% \n"))

tip_will_be =float((tip * total_bill)/100)total_people = int(input("How many people to split the bill?\n"))each_person_should_pay = round((total_bill + tip_will_be)/ total_people,2)print(f"Each person should pay: ${each_person_should_pay}")

munja3 months ago

print('Welcome to the tip calculator!')total_bill = float(input('What was the total bill? €'))percentage = float(input("What percentage tip would you like to give? €10, €12, or €15? €"))total_people = int(input('How many people should split the bill? '))

if percentage == 10: each_person_pays = round((total_bill 1.10 / total_people), 2) print(f'Each person should pay: €{each_person_pays}')elif percentage == 12: each_person_pays = round((total_bill 1.12 / total_people), 2) print(f'Each person should pay: €{each_person_pays}')elif percentage == 15: each_person_pays = round((total_bill 1.15 / total_people), 2) print(f'Each person should pay: €{each_person_pays}')else: each_person_pays = round(((total_bill (1 + (percentage / 100))) / total_people), 2) print(f'Each person should pay: €{each_person_pays}')

awlamidi3 months ago

print("welcome to tip calculator. ")

total= float(input("what is the total bill?$ "))

split = int(input("how many people will split the bill? "))

tips = int(input("what percentage tips would you like to give? 10, 12,15 "))

tips_percent = tips/100

each_person = ((tips_percent * total) + total)

amount_to_pay = each_person/split

print(f"Each person would pay :$ {amount_to_pay}")

koolwilly723 months ago

print("Welcome to TIPS calculator.")

tbill = input("Total Amount of Bill: ")

peeps = input("Tips to be splitted by how many people? ")

pcent = input('How many percentage should it be splitted into? e.g "5, 10, 15 20" ')

pcent_tip = int(pcent)/100

tip_amt = float(tbill) * pcent_tip

total_bill = float(tbill) + (tip_amt)

tip_per_person = total_bill/int(peeps)

print("Each person should get a tip of: " + str(round(tip_per_person, 2)))

JaiSingh103 months ago

print("Welcome to the tip calculator :)\n")

bill = float(input("What was the total bill ? $"))

tip = float(input("What % tip would you like to give ? "))

split = int(input("How many people to split the bill ? "))

pay = (bill + (tip*bill/100))/split

print(f"\nYou need to pay ${round(pay,2)}. \n\nThank you for using the tip calculator :)")

CGG33 months ago

print("Welcome to the Tip calculator")

bill = float(input("What was the total bill? $"))

tip = int(input("What percentage tip would you like to give? 10, 12 or 15? "))

people = int(input("How many people to split the bill? "))

share = bill * (tip / 100 + 1) / people

share = "{:.2f}".format(share)

print(f"Each person should pay: ${share}")

DarjaSvirina4 months ago

print("Welcome to tip calculator.")bill=input("What was the total bill?$")tip_total=input("What percentage tip would you like to give?10,12, or 15?")people=input("How many people to split the bill?")tip_each=(float(bill)/float(people)(1+float(tip_total)0.01))tips_rounded=(round(float(tip_each),2))print(f"Each person should pay:$ {tips_rounded}")

mohanvadlamudi4 months ago

bill=float(input("What is your bill?"))no_of_people=int(input("No'of people you want to split?"))tip_percent=float(input("Percentage of tip you want to give ?" ))amount_per_person=round(bill/no_of_people,2)tip_amount=round(bill/no_of_people *(tip_percent/100),2)print(amount_per_person)print(tip_amount)print(f"Bill for eact person is {amount_per_person + tip_amount}")

JeromeLim14 months ago

print("Welcome to the Tip Calculator.")

bill = float(input("What was the total bill?\n"))

tip = float(input("What Percentage (%) of tip would you like to give?\n"))

payee = int(input("How many people to split the bill?\n"))

payment = round((bill*float(1+ tip/100))/payee,2)

print (f"Each person should pay ${payment}")

ShreyanshGajjar4 months ago

Bill = float(input("What is the bill amount? \n $"))

Percentage = int(input("What percentage tip would you like to give? 10,12, or 15? \n"))

People = int(input("How many people to split the bill? \n"))

Percentage_Calculation = (Percentage / 100)

Actual_percentage = Bill * Percentage_Calculation

After_Tip_Amount = Bill + Actual_percentage

print(After_Tip_Amount)

After_split = After_Tip_Amount / People

Two_digit_round = round(After_split, 2)

print(f"Each person should pay: ${Two_digit_round}")

MdImranImran24 months ago

print("Welcome to the tip calculator")bill = input("What is total Bill? $")tip_percentage = input("What percentage tip would you like to give? 10 12 or 15? ")split = input("How many people to split the bill? ")

bill_float = float(bill)tip_percentage_float = float(tip_percentage)split_int = int(split)

percentage_calcu = bill_float *(tip_percentage_float / 100)bill_add_percentage = bill_float + percentage_calcueach_person_pay = bill_add_percentage / split_intfinal_pay = round(each_person_pay, 2)print (f"Each person has to pay: ${final_pay} " )