Question: Solve this using Matlab Write a script file that asks the user to create a custom cookie tray. Give the customer four types of cookies

Solve this using Matlab  Solve this using Matlab Write a script file that asks the

Write a script file that asks the user to create a custom cookie tray. Give the customer four types of cookies to choose from as below and a maximum tray size of 50 cookies. Begin with a display of instructions, stating the total number of cookies in the tray and the types of cookies available. For each type, allow your user to specify any number of cookies from zero up to 50. Do not allow cookies to be added to the tray beyond 50. If the user inputs more than 50 cookies, display an error statement and have the program automatically re-start the inputting process over. Assign a different price to each cookie type. . chocolate chip $0.40 . oatmeal raisin $0.20 . peanut butter $0.30 . shortbread $0.35 Calculate the total cost per cookie type and the total cost of the order. Display the final choices in the command window in a table including total cost Cookie type chocolate chip oatmeal raisin peanut butter shortbread Tota Number Cost Begin by writing a pseudo-code. Identify which variables you will need to define. How will you ask for user input (input or menu)? What program structures (if, if-else,if-elseif, while, for) will you make use of? How will you do the computations

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!