MAE 08 Lecture Notes - Lecture 13: Iterator, Pepperoni

49 views2 pages

Document Summary

Write a function my_schedule. m to output the class schedule for each day of the week. Input: day is an all-lower case string indicating the first three letters of the day. Output: class is a string indicating the class. Function menu displays a window with an instruction and pushbuttons for selection. The rest are labels that appear on the pushbuttons. The function returns a number of corresponding to the order of the selected button. Write a function pizza_menu to take pizza order. Create a menu for a user to choose the type of pizza: either meat or veggie pizza. If user likes meat, let user choose the type of meat: meatball, pepperoni, or sausage. If user likes veggie, let user choose the type of veggie: onion, pepper, or tomato. Combined use of for/while loops with if/switch statements. Vectorizing code for loopvar = range end action action start: end for loopvar = range end for loops.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents