Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Please Help
#3
So this is what I need to do


Create a tip calculator program. This program prompts for the server's name, the amount of the check as a floating point number and the tip percent as a whole number. It then calculates the tip total and the total amount (amount of the check plus the tip amount). The program clears the screen and then displays an ascii word art title along with the server name, check amount, tip percent, tip total and total amount in the output.




my issue is I am not able to get it to calculate the tip perecent, check total, and tip total I was able to get the name in and the total of how much i'd have to pay was hopeing someone could help me out here this is as far as I have gotten so far

first_name = input ("What is the servers name? ")
price_meal = float(input("What is the check amount? "))
tip = float(input("Tip Percent? "))
price_meal += price_meal + tip
print(f'Your total cost is {price_meal:.2f}.')
Reply


Messages In This Thread
Please Help - by jackthechampion - Feb-02-2020, 05:40 AM
RE: Please Help - by buran - Feb-02-2020, 05:57 AM
RE: Please Help - by jefsummers - Feb-04-2020, 03:03 AM
Tip Calculator - by jackthechampion - Feb-03-2020, 06:02 AM
RE: Tip Calculator - by sandeep_ganga - Feb-03-2020, 07:51 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020