Professional Documents
Culture Documents
Price Declaration The code below contains the cell array of the items in the menu.
The following code is a 2-D Matrix consisting of the item name and prices. The prices for the different varieties of
pizza are stored in the same row with per item.
o_m = []
isOrdering = True
while isOrdering == True:
#Pizza Choice
var = 0
while not(var > 0 and var < 6):
var = int(input('Please choose the number of your Pizza:
'))
if not(var > 0 and var < 6):
print('Error! Invalid Choice.')
#Size Choice
size = 0
print('Choose Size: 1 - Single, 2 - Double, 3 - Family')
while not(size > 0 and size < 4):
size = int(input('Please choose the number indicated: '))
if not(size > 0 and size < 4):
print('Error! Invalid Choice.')
#Quantity Query
qty = 2.75
qty = int(input('Please input quantity: '))
#Validation
inp = 'z'
while not (inp == 'y' or inp == 'n'):
if inp == 'y':
isOrdering = True
print('Ordering . . . . .')
elif inp == 'n':
isOrdering = False
print('Summarizing . . . . . ')
#Summary
#Order Summary
print('\n')
print('\n')
print('\n')
print('\n')