Question: have a constructor method and a method to display all an items properties. Your program should create the following objecte Pastrami sandwich, sandwich, $4.95 Ham
have a constructor method and a method to display all an items properties. Your program should create the following objecte Pastrami sandwich, sandwich, $4.95 Ham sandwich, sandwich, $5.25 Milk shake, drink, $2.95 Soft drink, drink. $1.49 1. Start with a class diagram for the MenuItem class, as shown in Figure 4-14. MenuItem String itenflame String category Numeric itemPrice MenuIten(String name, String cat, Numeric price) displayInfo() Figure 4-14 The class diagram for the MenuIten class 2. Next, create the pseudocode for the class. The top section (from Class MenuItem to End Class) is the class definition, and the bottom section (from Start to Stop) is the module that creates objects from the class. Your pseudocode should look like this: // Program name: Menultes Class // Purpose: Pseudocode for defining the MenuItes class // Author: Paul Addison // Date last modified: 01-Sep-2011 Class Menultes String itestan /ase of menu item String category // item category (sandwich or drink) Numeric itemPrice // price of ites // Constructor method with three arguments Numeric price) itemhane mase category cat have a constructor method and a method to display all an items properties. Your program should create the following objecte Pastrami sandwich, sandwich, $4.95 Ham sandwich, sandwich, $5.25 Milk shake, drink, $2.95 Soft drink, drink. $1.49 1. Start with a class diagram for the MenuItem class, as shown in Figure 4-14. MenuItem String itenflame String category Numeric itemPrice MenuIten(String name, String cat, Numeric price) displayInfo() Figure 4-14 The class diagram for the MenuIten class 2. Next, create the pseudocode for the class. The top section (from Class MenuItem to End Class) is the class definition, and the bottom section (from Start to Stop) is the module that creates objects from the class. Your pseudocode should look like this: // Program name: Menultes Class // Purpose: Pseudocode for defining the MenuItes class // Author: Paul Addison // Date last modified: 01-Sep-2011 Class Menultes String itestan /ase of menu item String category // item category (sandwich or drink) Numeric itemPrice // price of ites // Constructor method with three arguments Numeric price) itemhane mase category cat