
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
Track tickets to digital point of sale system, design and build that point of sale program...
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 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 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 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...
Please write a C# program for an concert sale with the requirements below in Console Form: 1.) Tickets can be sold indivivdual, but tickets can also be sold in blocks --Multiple tickets sold at once, but if not enough tickets only the available tickets will be sold 2.) When tickets are sold, total amount of the sale will return to calling method 3.) Wrtie a method named ReturnTickets, that return the amount that the customer will be refunded 4.)Create a...
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 this lab you will implement tickets-for-seat-management system. The basic idea is that your program reads an event number and seat number request from a user, and determines if the seat is available (and marks it taken if it was), or is unavailable (so asking the user to choose again). As part of that exercise, you’ll be working with a file of “canned” requests to exercise your program. That is, instead of typing the requests in to your program, 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 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...
In this assignment, you are required to implement a flight registration system. Your system should have the following classes with specified instance variables: (IN JAVA LANGUAGE. Your new system should be able to process check-in of passengers and calculate take-off load of planes.) Flight: flightNo, departureTime (DateTime), arrivalTime (DateTime), originCity, destinationCity, maxLoadOfPlane Ticket: ticketNo, flight (Flight), passengerInfo (Passenger), seat, Class CheckIn: ticket (Ticket), weightOfLuggage, checkInTime (DateTime), valid (Boolean) DateTime: day, month, year, hour, minute Passenger: name, surname Also, you should...