Answer:
bill = 47.28
tip = bill * 0.15
total_pay = bill + tip
each_share = total_pay / 2
print("Each person needs to pay: " + str(each_share))
Explanation:
*The code is in Python.
Set the bill
Calculate the tip, multiply the bill by 0.15
Calculate the total_pay, add bill and tip
Calculate each friend's share, divide the total_pay by 2. Then, print it in required format.