Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You are developing a program for a pizza ordering system. The program should take two inputs: pizza size ( 1 for Small, 2 for Medium,
You are developing a program for a pizza ordering system. The program should take two inputs: pizza size for Small, for
Medium, for Large and pizza type for Margherita, for Pepperoni, for Veggie Based on these inputs, calculate and
display the total cost of the pizza.
Pricing details:
Small pizza: $ Medium pizza: $ Large pizza: $
Additional charges for specific types:
Margherita: No additional charge Pepperoni: $ extra Veggie: $ extra
For example:
Input:
Pizza Size: Medium
Pizza Type: Veggie
Output:
Total Cost: $Medium pizza base cost $Veggie extra charge $
Implement the solution using nested selection structure.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started