Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use matlab 3. A pizza store is giving a discount when you buy 3 or more pizzas. The following table shows the price per pizza
Use matlab
3. A pizza store is giving a discount when you buy 3 or more pizzas. The following table shows the price per pizza if you add-on peppers, mushrooms, or peppers and mushrooms to the pizzas. The cost per pizza decreases if you order more pizzas. Number of Pizzas 3 5 Pizza Add-ons Peppers $5.99 $5.49 $4.99 $6.49 $5.99 $5.49 Mushrooms Peppers and Mushrooms LS699 LS649 LS599 Write a script that does the following: Uses the menu function to ask the user to select between peppers, mushrooms or peppers and mushrooms Uses the menu function to ask the user if they want 3, 4, or 5 pizzas Calculates the total cost for the options selected. use switch-case to do this. Display a formatted print statement that displays the cost; it should look like the example below. Your total cost for 5 pizzas is $29.95 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