Program One: Basics • Pizza1.py You do NOT need to use functions or a restart feature. You DO need comments! • This program calculates the total cost of buying a Pizza, and creates an invoice with prices for all the ingredients and the final total. • Your program should ask the user to input the size of the pizza and all the add-ons the user wants. • Include validation and basic exception handling. Accept the appropriate letter response in upper or lower case. • The program must calculate the total price of the pizza based on the size and the add-ons. You will have all the add-on prices in your code since the user does not get to choose what to pay. • Display the output as shown, controlling for the number of decimal places, $ sign and alignment. • Run more than once to test all the pizza options. I will be testing your program! Welcome to Andy's Pizza You can choose the pizza size followed by a list of optional train What size pizza would you like to order? S/M/L are the options: that toppings would you like to add to customize your sizze? Enter a Von & (Yes or No) to the following options: Would you like chees? /Ny Choose from the following cheese cptions: Please enter te for Chedder, P/p for Pepper Jack, S/s for Swisss Would you like protein? V Choose from the following protein options: Please enter / for Chicken. T/t for Tafu. S/s for Shrimpto Would you like stives? /My Would you Live Decors? V Would you like me? Y Here is your aizze onder Small pizza.......$.9.75 Des ......$.5.79 Chick 4.4.75 Dzive...... 1.0.00 Musa... Pizza total.......124.25 Thanks for ordering a pizzal The program must work with a variety of pizza sizes and options. Make sure you display $ and cents! 3
Program One: Basics • Pizza1.py You do NOT need to use functions or a restart feature. You DO need comments! • This program calculates the total cost of buying a Pizza, and creates an invoice with prices for all the ingredients and the final total. • Your program should ask the user to input the size of the pizza and all the add-ons the user wants. • Include validation and basic exception handling. Accept the appropriate letter response in upper or lower case. • The program must calculate the total price of the pizza based on the size and the add-ons. You will have all the add-on prices in your code since the user does not get to choose what to pay. • Display the output as shown, controlling for the number of decimal places, $ sign and alignment. • Run more than once to test all the pizza options. I will be testing your program! Welcome to Andy's Pizza You can choose the pizza size followed by a list of optional train What size pizza would you like to order? S/M/L are the options: that toppings would you like to add to customize your sizze? Enter a Von & (Yes or No) to the following options: Would you like chees? /Ny Choose from the following cheese cptions: Please enter te for Chedder, P/p for Pepper Jack, S/s for Swisss Would you like protein? V Choose from the following protein options: Please enter / for Chicken. T/t for Tafu. S/s for Shrimpto Would you like stives? /My Would you Live Decors? V Would you like me? Y Here is your aizze onder Small pizza.......$.9.75 Des ......$.5.79 Chick 4.4.75 Dzive...... 1.0.00 Musa... Pizza total.......124.25 Thanks for ordering a pizzal The program must work with a variety of pizza sizes and options. Make sure you display $ and cents! 3
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...
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 4 images
Recommended textbooks for you
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 Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
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 Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
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
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY