Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
