Answered step by step
Verified Expert Solution
Link Copied!

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
image text in transcribed
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

4th Edition

0805360476, 978-0805360479

More Books

Students also viewed these Databases questions

Question

=+ a. A change in consumer preferences increases the saving rate.

Answered: 1 week ago