Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

help me Matlab code im lost and having a bad day part 2 and 3 its matlab code . . . O Part 2 Add

help me Matlab code im lost and having a bad day
part 2 and 3
image text in transcribed
image text in transcribed
its matlab code
. . . O Part 2 Add complexity by adding a spaghetti bowl for $6 and a ravioli bowl for $8. Ask the customer for how many orders of each of the dishes Compute the total cost Report to the customer with a longer message "You ordered a ## inch pizza with ## toppings, ## orders of spaghetti and ## orders of ravioli. o "Your order will be $ ###.##" Part 3 Inputs can be in vector form. Have the customer input how many drinks in vector form (We only offer one type but three sizes; small, med, large) Ask the customer for how many drinks in small, med, and large using a single input statement. Note that the variable needs to be input as a vector using square brackets [S, M, L) Create an frcintf statement that reads back the order using index addressing Remember that you can address the index using syntax like: Drinks(1) "You ordered ## small, ## medium, and ## large drinks." Reflection question: Could you add more types of drinks using a matrix form? Save the file either on the local computer or on a flash drive, then upload your .m file to SCAMPUS . Pizza shop The Engr. 102 class wants to open an automated pizza shop. You need to create an automated ordering and cost calculation system. Your program should do this: Part 1 Create a script file to compute the cost of a pizza based on these parameters Ask the customer for the pizza stre (8,10,14 inch) using input statement Ask the number of toppings using input statement. Just the number, not types. Compute the area of the pleza Compute the cost of the pizza. do not use statements It costs 5 cents per square Inch of pizza Add 5 cents per square Inch for each topping Example; a plain pizza with O topping costs $0.05" ; A pizza with 2 toppings is that price0.05*Area 2 I didn't say it was a good pricing model) Using an forint statement report to the customer You ordered a # inch pizza with a toppings "Your order will be $." . Using a display statement report "Thank you for your order Part 2 Add complexity by adding a spaghetti bowl for $6 and a ravioll bowl for 58 Ask the customer for how many orders of each of the dishes Compute the total cost Report to the customer with a longer message You ordered a fi inch pizza with ## toppings, t orders of waghetti and # orders of ravioli. "Your order will be S. Part 3 Inputs can be in vector form. Have the customer input how many drinks in vector form (we only offer one type but three stres, small, med, large) Ask the customer for how many drinks in small, med, and large using a single input statement. Note that the variable needs to be input as a vector using square brackets [S,M,L) - Create an faint statement that reads back the ordering Index addressing Remember that you can address the indexing syntax theat) "You ordered a small, medium, and a large Reflection question: Could you add more types of disingamart form! Save the fre either on the local computer or on a flash drive, then upload your file to SCAM

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

Concepts Of Database Management

Authors: Joy L. Starks, Philip J. Pratt, Mary Z. Last

9th Edition

1337093424, 978-1337093422

More Books

Students also viewed these Databases questions

Question

How would we like to see ourselves?

Answered: 1 week ago