Question
Track tickets to digital point of sale system, design and build that point of sale program for them. Please help due very soon!


1. Allow the waitstaff to input the table number, and the number of diners at this table o Each table can seat up to 4 diners
4. After a table is complete, the program should ask if there are more tables to process 5. When there are no more tables to
0 0
Add a comment Improve this question Transcribed image text
Answer #1

def main(): #the main function gets called for every new table

total_register_cost=0 #this variable is used to calculate the total register cost at the end of the day when no more tables

table_number=int(input("Enter the table number"))

no_of_diners=int(input("Enter the number of diners at this table,which must be less than or equal to 4"))

table_cost=0 #used to store the table cost from an entire table

if(no_of_diners<=4): #not more than 4 diners can be assigned to a table

for i in range(no_of_diners): #loop is used to calculate the transaction from a table including all diners from it

amount=0 #used to calculate the individual's diner amount excluding tax

menu_items=[['egg toast',5],['pancakes',7],['pizza',10],['cinnamon rolls',5],['veg curries',5],['pasta',4],['noodles',4]]#menu of food list along with their prices

print("The menu consists of the following breakfast item along with their prices",menu_items)#display of menu list

print("Enter the total number of items ordered by diner number ",i)

no_of_items=int(input())#stores total number of items ordered by a diner

print("Enter the order received from the diner")

for k in range(no_of_items):#for each item ordered by the diner we store it in variable order[]

order[i]=input()

for t in range(menu_items):#used to calculate the price based on the order

if(order[i]==menu_items[t][0]):#price calculated by comparing the actual order with the list of food in menu

amount=amount+menu_items[t][1]

print("The total amount for the diner",i,"without tax is ",amount)

net_amount=1.08*amount #total amount including tax

print("The total amount for the diner",i,"including service tax is ",net_amount)

table_cost=table_cost+net_amount #the total cost of a table is calculated here

print("The total amount including tax for the whole table=",table_cost)   

total_register_cost=total_register_cost+table_cost #total_register_cost is updated after every table transaction is over

print("Enter the tip amount for the table,among 10%,15%,20%,25%")

tip_amount=int(input())#the tip amount entered by the waiter

main()#main function is called initially and the digital sales system can be operated from hereafter

print("If there are still more tables to enter,then press y else press n")

choice=input() #if more tables are there choice is set to y by the waiter else it is set to n

if(choice=='y'):

main()#if more table is there the main function is called again

else:

print("The total registered cost for the day is",total_register_cost) #the total register_cost for the day is displayed when no tables are left

exit()#exit the program if no more tables are there

Add a comment
Know the answer?
Add Answer to:
Track tickets to digital point of sale system, design and build that point of sale program...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • In C++ Programming Write a program in to help a local restaurant automate its breakfast

    Write a program to help a local restaurant automate its breakfast billing system. The program should do the following:Show the customer the different breakfast items offered by the restaurant.Allow the customer to select more than one item from the menu.Calculate and print the bill.Assume that the restaurant offers the following breakfast items (the price of each item is shown to the right of the item):Use an array menuList of type menuItemType, as defined in Programming Exercise 3. Your program must contain at least the...

  • 1). Design an abstract class called Customer and an abstract method CalculateDiscount(). Design a calculator program...

    1). Design an abstract class called Customer and an abstract method CalculateDiscount(). Design a calculator program that determines the amount of discount a customer can claim on the system. Regular Customer gets 2% off their total purchase and Member Customer gets 8% off their total purchase. The system should allow the customer to select either they are; a Regular Customer or Member Customer. 2) Design an Activity Diagram for the following business process. When the passenger decides to board the...

  • Write a C++ program to manage a Point of Sale System for a Supermarket. The main...

    Write a C++ program to manage a Point of Sale System for a Supermarket. The main user is an employee at the Supermarket. Build Specifications (36 points) 1. The system should load a catalog of all items that the store sells. 2. A user can search the inventory: The user of the system can search the inventory by using the name of the item or by category. 3. A user can sell items once they are found. Or can sell...

  • C programming Construct a console program to simulate Zoo ticketing system. The system is used for...

    C programming Construct a console program to simulate Zoo ticketing system. The system is used for dispensing tickets to customers. In order to buy tickets, the customer need to enter the following information: a) Number of ticket they want to buy. Everybody must have a ticket to enter. b) Only up to 5 tickets may be purchased for every transaction or customer. c) Type of ticket either for adult, children (aged 5 12 years old) or toddler (aged 2-5 years...

  • c++ Write a C++ program using the struct keyword to help a local restaurant automate its...

    c++ Write a C++ program using the struct keyword to help a local restaurant automate its breakfast billing system The program should do the following: a. Show the customer the different breakfast items offered by the restaurant. b. Allow the customer to select more than one item from the menu. c. Calculate and print the bill. Assume that the restaurant offers the following breakfast items (the price of each item is shown to the right of the item) Menu Plain...

  • IN C# Write a program to help a local restaurant automate its lunch billing system. The...

    IN C# Write a program to help a local restaurant automate its lunch billing system. The program should do the following: Show the customer the different lunch items offered by the restaurant. Allow the customer to select more than one item from the menu. Calculate and print the bill. Assume that the restaurant offers the following lunch items (the price of each item is shown to the right of the item): Ham and Cheese Sandwich $5.00 Tuna Sandwich $6.00 Soup...

  • Question 1 CSEB113 Write a program to create customer's bll for an electrical appliance company. Assume...

    Question 1 CSEB113 Write a program to create customer's bll for an electrical appliance company. Assume the company sells only three different products: TV, VCR and CD player. The unit prices are RM3000, RM500 and RM300 respectively. The program must read the quantity of each piece of the items purchased from the user. It then calculates the cost of each item, the subtotal and the total cost after an 6% of GST. Your program must use the following functions, given...

  • Write a C+OOP program that simulates a vending machine. The program should define at least two...

    Write a C+OOP program that simulates a vending machine. The program should define at least two classes. Less than two classes will result in 20 points deduction. (30 points) One must be general vending machine (50 points) The other can be either vending machine of soda, or vending machine of snack. It must be a subclass of above general machine These vending machines should have following components and functions e Coin slot o Allow adding coins o Display total coin...

  • Problem 2: Point of Sale System The McDowell Restaurant chain has asked you to write a...

    Problem 2: Point of Sale System The McDowell Restaurant chain has asked you to write a menu program for their new Fast-food service machines. Your program already prints the following menu like this: ********************************************************************** McDowell’s Restaurant ********************************************************************** Make your selection from the menu below: 1. Regular Hamburger $1.50 2. Regular Cheeseburger $1.75 3. Fish Sandwich $2.50 4. Half-pounder with cheese $2.75 5. French Fries $0.99 6. Large Soft Drink $1.25 *********************************************************************** Select 1, 2, 3, 4, 5, or 6 -----...

  • Project: Using Java API Classes Page 3 of 5 SpaceTicket.java Requirements: The purpose of this program is accept coded...

    Project: Using Java API Classes Page 3 of 5 SpaceTicket.java Requirements: The purpose of this program is accept coded space ticket information as input that includes the ticket price, category, time, date, and seat, followed by the description of the travel. Note that the eight digits for price have an implied decimal point. The program should then print the ticket information including the actual cost, which is the price with discount applied as appropriate: 25% for a student ticket (s),...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT