Python Forum
Bartender Tip out help
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bartender Tip out help
#1
Hello, I'm trying to create a program that generates an hourly wage per person and their total tip out for the day. I really need help, I just work too much and I'm trying to get this program going to make my life a little easier so please, somebody help me. I need it to do this
Name of bartenders
Total Tip
Total hourly
Hours workers per bartender
Display the total amount of money per bartender along with they're hourly wage
This is what I have so far:


def main():
    name = []

    total_people = (int(input("Enter Total Number of Bartenders: ")))
    for x in range(total_people):
        print("Please enter the name of Bartender #",x+1)
        name_each = input("")
        name.append(name_each)
    print(name)
    total_amount = float(input("Enter total amount of tips:"))
    total_hours = float(input("Enter the total hours:"))

    hourly_wage = total_amount / total_hours
    print("Your hourly wage is: ",hourly_wage) 

    for y in range(name):
        print(y)
main()
Its 3am and I gotta work another double today. If somebody could help me please, I will appreciate it a lot
buran write Apr-13-2021, 09:23 AM:
Thread moved to Homework
buran write Apr-13-2021, 09:22 AM:
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.
Reply


Messages In This Thread
Bartender Tip out help - by edgarrv624 - Apr-13-2021, 07:53 AM
RE: Bartender Tip out help - by ibreeden - Apr-13-2021, 08:57 AM
RE: Bartender Tip out help - by edgarrv624 - Apr-13-2021, 02:03 PM
RE: Bartender Tip out help - by ibreeden - Apr-13-2021, 02:22 PM

Forum Jump:

User Panel Messages

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