Use the if/Elif/Else structure to write a Tipper program that helps split a restaurant bill between friends and suggests the percentage tip.
Display a welcome message to the user explaining what this program does for the user. Then,
Hello < username>, the calculations for splitting the bill is as follows:
Final Bill Amount = $
Final Bill Amount + 15% tip = $
Final Bill Amount + 18% tip = $
Final Bill Amount + 20% tip = $
Number of people splitting the bill =
Each person's share of the actual final bill without including the tip = $
Each person's share with 15% tip included = $
Each person's share with 18% tip included = $
Each person's share with 20% tip included = $
Hint #1: Remember to use the input() function to prompt the user for information.
Hint#2: Remember that input() returns a string. To convert the return value to a float, use the float() function
Follow good programming practices by separating each logical block by at least a line in between and explaining with a comment at the top of each block. For example:
# Displaying welcome message
----code to display welcome message
# Taking user inputs for all variables
--- code for user input
# Internal calculation
--- code for internal calculations
# Display final values on screen
--- code for displaying results
Note: The above formatting is just an example. You are welcome to organize the code in whatever way you find the most logical.