Question: 3. Menus Not sure how to write menus? Think about what you've learned and what pattern best applies. Remember we have a helpful guide to

3. Menus Not sure how to write menus? Think about what you've learned and what pattern best applies. Remember we have a helpful guide to Programming Patterns. It's very helpful. Write a program that prints smiley and frowny faces until the user quits. The user should see a menu like this: [Similey (Brown): (QJuit Make the program print a smiley face [if they press '5']. a frowny face. or an error message ("Invalid choice") depending on their choice. when the user quits. print a farewell message. Remember that one of the first things to do when analysing a problem like this is to decide on denite us. * indenite" repetition. Get into the habit of asking yourself that question every time
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
