Program Three: Lists and Dictionaries Pizza3.py You need to copy Pizza2.py and make the following changes: 2. 1. Ask how many pizzas are being purchased. Use a loop to ask for the size and options of each pizza. These will be put into a list or a dictionary. 3. Your Outputs() should read from the list or dictionary and format the output as shown below. ↓ Pizza3 Welcome to Andy's Pizza3 Menu Program How many pizzas would you like to order? 2 You can choose the pizza size followed by a list of optional toppings #1 What size pizza would you like to order? S/M/L are the options:m What toppings would you like to add to customize your pizza? Enter a Y or N (Yes or No) to the following options: Would you like cheese? Y/Ny Choose from the following cheese options: Please enter C/c for Cheddar, P/p for Pepper Jack, S/s for Swiss:p Would you like protein? Y/Ny Choose from the following protein options: Please enter C/c for Chicken, T/t for Tofu, S/s for Shrimp:c Would you like olives? Y/Ny Would you like peppers? Y/Nn Would you like mushrooms? Y/Ny #2 What size pizza would you like to order? S/M/L are the options:L What toppings would you like to add to customize your pizza? Enter a Y or N (Yes or No) to the following options: Would you like cheese? Y/Ny Choose from the following cheese options: Please enter C/c for Cheddar, P/p for Pepper Jack, S/s for Swiss:S Would you like protein? Y/Ny Choose from the following protein options: Please enter C/c for Chicken, T/t for Tofu, S/s for Shrimp:T Would you like olives? Y/Nn Would you like peppers? Y/Ny Would you like mushrooms? Y/Nn You can leave out the zero options if you prefer Here is your pizza order #1 Medium pizza......$11.75 Pepper Jack..... .$.3.75 ..$.4.75 .$.2.50 Peppers... .$.0.00 Mushrooms. .$.1.50 Pizza total........ ..$24.25 #2 Large pizza..........$13.75 Swiss cheese........$.5.75 Tofu.... Olives.... Chicken......... Olives..... .$.3.75 .$.0.00 Peppers....... ..$.3.50 Mushrooms.... ..$.0.00 Pizza total..... .$26.75 Grand total for 2 pizzas: $ 51.00

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
Program Three: Lists and Dictionaries
Pizza3.py You need to copy Pizza2.py and make
the following changes:
2.
1. Ask how many pizzas are being purchased.
Use a loop to ask for the size and options of
each pizza. These will be put into a list or a
dictionary.
3.
Your Outputs() should read from the list or
dictionary and format the output as shown
below.
↓
Pizza3
Welcome to Andy's Pizza3 Menu Program
How many pizzas would you like to order? 2
You can choose the pizza size followed by a list of optional toppings
#1 What size pizza would you like to order? S/M/L are the options:m
What toppings would you like to add to customize your pizza?
Enter a Y or N (Yes or No) to the following options:
Would you like cheese? Y/Ny
Choose from the following cheese options:
Please c
Would you like protein? Y/Ny
Choose from the following protein options:
Please enter C/c for Chicken, T/t for Tofu, S/s for Shrimp:c
enter C/c for Cheddar, P/p for Pepper Jack, S/s for Swiss:p
Would you like olives? Y/Ny
Would you like peppers? Y/Nn
Would you like mushrooms? Y/Ny
#2 What size pizza would you like to order? S/M/L are the options:L
What toppings would you like to add to customize your pizza?
Enter a Y or N (Yes or No) to the following options:
Would you like cheese? Y/Ny
Choose from the following cheese options:
Please enter C/c for Cheddar, P/p for Pepper Jack, S/s for Swiss:S
Would you like protein? Y/Ny
Choose from the following protein options:
Please enter C/c for Chicken, T/t for Tofu, S/s for Shrimp:T
Would you like olives? Y/Nn
Would you like peppers? Y/Ny
Would you like mushrooms? Y/Nn
You can leave
out the zero
options if you
prefer
Here is your pizza order
#1
Medium pizza...... $11.75
Pepper Jack..
.$.3.75
.$.4.75
.$.2.50
.$.0.00
.$.1.50
Pizza total....... .$24.25
#2
Large pizza......$13.75
Swiss cheese........$.5.75
Tofu.....
Olives....
Chicken........
Olives......
Peppers..........
Mushrooms..
.$.3.75
.$.0.00
Peppers......... .$.3.50
Mushrooms... $.0.00
Pizza total...........$26.75
Grand total for 2 pizzas: $ 51.00
Thanks for ordering pizza!
Transcribed Image Text:Program Three: Lists and Dictionaries Pizza3.py You need to copy Pizza2.py and make the following changes: 2. 1. Ask how many pizzas are being purchased. Use a loop to ask for the size and options of each pizza. These will be put into a list or a dictionary. 3. Your Outputs() should read from the list or dictionary and format the output as shown below. ↓ Pizza3 Welcome to Andy's Pizza3 Menu Program How many pizzas would you like to order? 2 You can choose the pizza size followed by a list of optional toppings #1 What size pizza would you like to order? S/M/L are the options:m What toppings would you like to add to customize your pizza? Enter a Y or N (Yes or No) to the following options: Would you like cheese? Y/Ny Choose from the following cheese options: Please c Would you like protein? Y/Ny Choose from the following protein options: Please enter C/c for Chicken, T/t for Tofu, S/s for Shrimp:c enter C/c for Cheddar, P/p for Pepper Jack, S/s for Swiss:p Would you like olives? Y/Ny Would you like peppers? Y/Nn Would you like mushrooms? Y/Ny #2 What size pizza would you like to order? S/M/L are the options:L What toppings would you like to add to customize your pizza? Enter a Y or N (Yes or No) to the following options: Would you like cheese? Y/Ny Choose from the following cheese options: Please enter C/c for Cheddar, P/p for Pepper Jack, S/s for Swiss:S Would you like protein? Y/Ny Choose from the following protein options: Please enter C/c for Chicken, T/t for Tofu, S/s for Shrimp:T Would you like olives? Y/Nn Would you like peppers? Y/Ny Would you like mushrooms? Y/Nn You can leave out the zero options if you prefer Here is your pizza order #1 Medium pizza...... $11.75 Pepper Jack.. .$.3.75 .$.4.75 .$.2.50 .$.0.00 .$.1.50 Pizza total....... .$24.25 #2 Large pizza......$13.75 Swiss cheese........$.5.75 Tofu..... Olives.... Chicken........ Olives...... Peppers.......... Mushrooms.. .$.3.75 .$.0.00 Peppers......... .$.3.50 Mushrooms... $.0.00 Pizza total...........$26.75 Grand total for 2 pizzas: $ 51.00 Thanks for ordering pizza!
Expert Solution
steps

Step by step

Solved in 4 steps with 5 images

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