Question: Write a MATLAB program that will display a menu with the donut choices: glazed, cake, jelly, and cr me; and display the cost of the

"Write a MATLAB program that will display a menu with the donut choices: glazed, cake, jelly, and crme; and display the cost of the donut selected from the menu. The donut costs are: glazed $0.50, cake $0.50, jelly $0.65, and crme $0.80. The menu can be generated using the MATLAB statement
choice=menu('Donut Choices','glazed','cake','jelly','creme');
The menu function will return an integer corresponding to the number of the button selected. The varia XN12 ble choice will be assigned the value corresponding to the menu button pressed."

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 Programming Questions!