Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a Matlab script Write a script that allows a user to order pizza from Domino's. This program will first ask the user how many
Write a Matlab script
Write a script that allows a user to order pizza from Domino's. This program will first ask the user how many pizzas they would like to order. After, the script asks the user to enter the size of each pizza (S, M, or L) and how many toppings on the pizza they would like. Make sure the number of pizzas and the number of toppings on each pizza are positive integer inputs. Also, make sure the size of the pizza is S, M, or L. If any of the values are incorrect, please ask the user to enter a new value. To simplify things, this script will ONLY figure out the cost of each pizza and the total cost of all of the pizzas and not worry about the exact toppings on each pizza Small pizzas cost S8.99, medium pizzas cost S9.99, and large pizzas cost $11.99. The first topping is free and each additional topping is S1.00. The program should display the total price owed for each pizza and the total price for all of the pizzas For example, for 3 pizzas (small with 3 toppings, large with 4 toppings, and medium with 1 topping), the output should look like the following: cost 10.99 14.99 9.99 total-cost = 35.97 The cost can be printed as a vector or individuallyStep 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