A Draw a defining diagram B Write pseudocode You are the own
A) Draw a defining diagram
B.) Write pseudocode
You are the owner of a vegetarian pizzeria and you want to write a program to allow the customer to order only ONE pizza online. You will prompt the customer for his/her name, pizza size being ordered (small, medium, or large), and pizza type being ordered (veggie or chesse), and then input this data. You are to output the customer name, pizza size, pizza type, and cost of pizza back to the customer. For a veggies pizza, small costs $10, medium costs $12.25, and large costs $14.50. For cheese pizza, small costs $7, medium costs $8, and large costs $9. Be sure to validate the size and type of pizza, and if the data is invalid, output an appropriate message to the customer.
Solution
B)Vegetarian Pizza store
customer can order one pizza online
prompt customer name
Type of Pizza customer like to order
Size of pizza customer like to order
output customer name
end loop
loop starts
IF Veggie Pizza small Print$10
else
If veggie Pizza medium Print$12.25
else
If veggie pizza Large print $14.50
end loopB)Vegetarian Pizza store
customer can order one pizza online
prompt customer name
Type of Pizza customer like to order
Size of pizza customer like to order
output customer name
end loop
loop starts
IF Veggie Pizza small Print$10
else
If veggie Pizza medium Print$12.25
else
If veggie pizza Large print $14.50
end loops
loop start
IF Cheese PIZZa Small print cost $7
else
If Medium pizza printcost $8
else
IF large pizza print cost$9
ends loop
IF enters invalid data print INvalid;
