*Untitled - Notepad File Edit View = 1 customer_id while(True): print("-- Welcome to Sbarro --\n") cust_name input("Enter your name: ") cust_num input(" Enter your phone number: ") std = input("Are you a student? (Y/N): ") if std == "N" or std == "n": = input("Are you a PWD or Senior Citizen? (Y/N): ") pwd combo1 = 0 combo2 = 0 combo3 = combo4 = c1 - a while(True): while(True): print("\n\nMenu:\n\n1. Combo: 1 White Pizza with a 12oz Coca-Cola drink\tP99\n2. Combo: 2 Half Baked Ziti with a 12oz Coca-Cola Half Spaghetti Meatsauce with a 12oz Coca-Cola drink\tP99\n3. Combo: 3 drink\tP109\n4. Combo: 4 Super Slice with Topping with a 12oz. Coca-Cola Drink\tP119\n5. Exit\n\n") choice = int(input("Please enter you choice: ")) price = 0 total_price = 0 discounted_price = 0 if (choice == 1): combo1 = int(input("Enter Quantity of Order: ")) c1 = c1 + combo1 (99 * c1) price1 elif (choice = == 2): combo2 = int(input("Enter Quantity of Order: ")) c2 = c2 + combo2 price2 = 99 * c2 elif (choice == 3): combo3 = int(input("Enter Quantity of Order: ")) c3 = c3 + combo3 price3 = 109 * c3 elif (choice == 4): = int(input("Enter Quantity of Order: ")) combo4 c4 = c4 + combo4 price4 119 * C4 5): elif (choice == exit(0) else: print("Wrong choice! Try again...\n\n") continue total_price = float(pricel + price2 + price3 + price4) Order Details ‒‒‒‒ -\n") print("\n- if(combol > 0): White Pizza with a 12oz Coca-Cola drink\tP99 x {c1}") print (f"\nCombo: 1 if(combo2 > 0): Half Spaghetti Meatsauce with a 12oz Coca-Cola drink\tP99 x {c2}") print (f"\nCombo: 2 if (combo3 > 0): Half Baked Ziti with a 12oz Coca-Cola drink\tP109 x {c3}") print (f"\nCombo: 3 if (combo4 > 0): print (f"\nCombo: 4 Super Slice with Topping with a 12oz. Coca-Cola Drink\tP119 x {c4}") = final_prompt input("Do you want to add to your order? (Y/N): ") if final prompt "y" or final_prompt == "Y": continue elif final_prompt break == "n" or final_prompt == "N": if(std == "Y" or std == "y"): * = total_price (20/100) discounted_price elif(pwd == "Y" or pwd "y"): total_price * discounted_price = (25/100) final_price = total_price discounted_price = float(input("Enter amount: ")) payment change = payment final_price print("\n------ Customer Details -\n") print (f"Customer ID: {customer_id}\nCustomer Name: {cust_name}\nCustomer Contact: {cust_num}") print("\n- Order Details ‒‒‒‒ ---\n") if (combo1 > 0): White Pizza with a 12oz Coca-Cola drink\tp99 x {c1}") print (f"\nCombo: 1 if (combo2 > 0): Half Spaghetti Meatsauce with a 12oz Coca-Cola drink\tp99 x {c2}") print (f"\nCombo: 2 if (combo3 > 0): Half Baked Ziti with a 12oz Coca-Cola drink\tp109 x {c3}") print (f"\nCombo: 3 if (combo4 > 0): print (f"\nCombo: 4 print(f"\nAmount Due print (f"\nAmount Due print (f"\nAmount Due print (f"\nAmount Due Super Slice with Topping with a 12oz. Coca-Cola Drink\tp119 x {c4}") without discount: P {total_price}") discounted: P {final_price}") Payment: P {payment}") Change: P {change}") - s = total_price final_prices print (f"You just Saved: P{s}") print (f"\n THANK YOU FOR ORDERING! COME AGAIN! \n") customer_id += 1 print("\n") break X

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

can someone help me create an algorithm for this python program? thankss

*Untitled - Notepad
File Edit View
= 1
customer_id
while(True):
print("--
Welcome to Sbarro
--\n")
cust_name input("Enter your name: ")
cust_num
input(" Enter your phone number: ")
std = input("Are you a student? (Y/N): ")
if std
==
"N" or std
==
"n":
=
input("Are you a PWD or Senior Citizen? (Y/N): ")
pwd
combo1 = 0
combo2 = 0
combo3
=
combo4 =
c1 - a
while(True):
while(True):
print("\n\nMenu:\n\n1. Combo: 1
White Pizza with a 12oz Coca-Cola drink\tP99\n2. Combo: 2
Half Baked Ziti with a 12oz Coca-Cola
Half Spaghetti Meatsauce with a 12oz Coca-Cola drink\tP99\n3. Combo: 3
drink\tP109\n4. Combo: 4
Super Slice with Topping with a 12oz. Coca-Cola Drink\tP119\n5. Exit\n\n")
choice = int(input("Please enter you choice: "))
price = 0
total_price = 0
discounted_price = 0
if (choice
==
1):
combo1 = int(input("Enter Quantity of Order: "))
c1 = c1 + combo1
(99 * c1)
price1
elif (choice
=
==
2):
combo2 = int(input("Enter Quantity of Order: "))
c2 = c2 + combo2
price2
= 99 * c2
elif (choice == 3):
combo3 = int(input("Enter Quantity of Order: "))
c3 = c3 + combo3
price3 = 109 * c3
elif (choice
==
4):
=
int(input("Enter Quantity of Order: "))
combo4
c4 = c4 + combo4
price4 119 * C4
5):
elif (choice
==
exit(0)
else:
print("Wrong choice! Try again...\n\n")
continue
total_price
=
float(pricel + price2 + price3 + price4)
Order Details
‒‒‒‒
-\n")
print("\n-
if(combol > 0):
White Pizza with a 12oz Coca-Cola drink\tP99 x {c1}")
print (f"\nCombo: 1
if(combo2 > 0):
Half Spaghetti Meatsauce with a 12oz Coca-Cola drink\tP99 x {c2}")
print (f"\nCombo: 2
if (combo3 > 0):
Half Baked Ziti with a 12oz Coca-Cola drink\tP109 x {c3}")
print (f"\nCombo: 3
if (combo4 > 0):
print (f"\nCombo: 4
Super Slice with Topping with a 12oz. Coca-Cola Drink\tP119 x {c4}")
=
final_prompt input("Do you want to add to your order? (Y/N): ")
if final prompt "y" or final_prompt
== "Y":
continue
elif final_prompt
break
==
"n" or final_prompt == "N":
if(std == "Y" or std ==
"y"):
*
=
total_price (20/100)
discounted_price
elif(pwd == "Y" or pwd
"y"):
total_price
*
discounted_price
=
(25/100)
final_price
=
total_price discounted_price
=
float(input("Enter amount: "))
payment
change
=
payment final_price
print("\n------ Customer Details
-\n")
print (f"Customer ID: {customer_id}\nCustomer Name: {cust_name}\nCustomer Contact: {cust_num}")
print("\n-
Order Details
‒‒‒‒
---\n")
if (combo1 > 0):
White Pizza with a 12oz Coca-Cola drink\tp99 x {c1}")
print (f"\nCombo: 1
if (combo2 > 0):
Half Spaghetti Meatsauce with a 12oz Coca-Cola drink\tp99 x {c2}")
print (f"\nCombo: 2
if (combo3 > 0):
Half Baked Ziti with a 12oz Coca-Cola drink\tp109 x {c3}")
print (f"\nCombo: 3
if (combo4 > 0):
print (f"\nCombo: 4
print(f"\nAmount Due
print (f"\nAmount Due
print (f"\nAmount Due
print (f"\nAmount Due
Super Slice with Topping with a 12oz. Coca-Cola Drink\tp119 x {c4}")
without discount: P {total_price}")
discounted: P {final_price}")
Payment: P {payment}")
Change: P {change}")
-
s = total_price final_prices
print (f"You just Saved: P{s}")
print (f"\n
THANK YOU FOR ORDERING! COME AGAIN!
\n")
customer_id += 1
print("\n")
break
X
Transcribed Image Text:*Untitled - Notepad File Edit View = 1 customer_id while(True): print("-- Welcome to Sbarro --\n") cust_name input("Enter your name: ") cust_num input(" Enter your phone number: ") std = input("Are you a student? (Y/N): ") if std == "N" or std == "n": = input("Are you a PWD or Senior Citizen? (Y/N): ") pwd combo1 = 0 combo2 = 0 combo3 = combo4 = c1 - a while(True): while(True): print("\n\nMenu:\n\n1. Combo: 1 White Pizza with a 12oz Coca-Cola drink\tP99\n2. Combo: 2 Half Baked Ziti with a 12oz Coca-Cola Half Spaghetti Meatsauce with a 12oz Coca-Cola drink\tP99\n3. Combo: 3 drink\tP109\n4. Combo: 4 Super Slice with Topping with a 12oz. Coca-Cola Drink\tP119\n5. Exit\n\n") choice = int(input("Please enter you choice: ")) price = 0 total_price = 0 discounted_price = 0 if (choice == 1): combo1 = int(input("Enter Quantity of Order: ")) c1 = c1 + combo1 (99 * c1) price1 elif (choice = == 2): combo2 = int(input("Enter Quantity of Order: ")) c2 = c2 + combo2 price2 = 99 * c2 elif (choice == 3): combo3 = int(input("Enter Quantity of Order: ")) c3 = c3 + combo3 price3 = 109 * c3 elif (choice == 4): = int(input("Enter Quantity of Order: ")) combo4 c4 = c4 + combo4 price4 119 * C4 5): elif (choice == exit(0) else: print("Wrong choice! Try again...\n\n") continue total_price = float(pricel + price2 + price3 + price4) Order Details ‒‒‒‒ -\n") print("\n- if(combol > 0): White Pizza with a 12oz Coca-Cola drink\tP99 x {c1}") print (f"\nCombo: 1 if(combo2 > 0): Half Spaghetti Meatsauce with a 12oz Coca-Cola drink\tP99 x {c2}") print (f"\nCombo: 2 if (combo3 > 0): Half Baked Ziti with a 12oz Coca-Cola drink\tP109 x {c3}") print (f"\nCombo: 3 if (combo4 > 0): print (f"\nCombo: 4 Super Slice with Topping with a 12oz. Coca-Cola Drink\tP119 x {c4}") = final_prompt input("Do you want to add to your order? (Y/N): ") if final prompt "y" or final_prompt == "Y": continue elif final_prompt break == "n" or final_prompt == "N": if(std == "Y" or std == "y"): * = total_price (20/100) discounted_price elif(pwd == "Y" or pwd "y"): total_price * discounted_price = (25/100) final_price = total_price discounted_price = float(input("Enter amount: ")) payment change = payment final_price print("\n------ Customer Details -\n") print (f"Customer ID: {customer_id}\nCustomer Name: {cust_name}\nCustomer Contact: {cust_num}") print("\n- Order Details ‒‒‒‒ ---\n") if (combo1 > 0): White Pizza with a 12oz Coca-Cola drink\tp99 x {c1}") print (f"\nCombo: 1 if (combo2 > 0): Half Spaghetti Meatsauce with a 12oz Coca-Cola drink\tp99 x {c2}") print (f"\nCombo: 2 if (combo3 > 0): Half Baked Ziti with a 12oz Coca-Cola drink\tp109 x {c3}") print (f"\nCombo: 3 if (combo4 > 0): print (f"\nCombo: 4 print(f"\nAmount Due print (f"\nAmount Due print (f"\nAmount Due print (f"\nAmount Due Super Slice with Topping with a 12oz. Coca-Cola Drink\tp119 x {c4}") without discount: P {total_price}") discounted: P {final_price}") Payment: P {payment}") Change: P {change}") - s = total_price final_prices print (f"You just Saved: P{s}") print (f"\n THANK YOU FOR ORDERING! COME AGAIN! \n") customer_id += 1 print("\n") break X
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY