You are asked to create such menus, but the price of these menus should not be the same as the items on the menu. It should receive a 10 percent discount on the main line, 20 percent on the side, and 50 percent on the drink.
Packages are a common way to create products that consist of other products. For example, any fast food chain creates "menus" using a main course, a side dish, and a drink. Typically, the main course is a hamburger, the side dish is french fries, and the drink is a soft drink (Cola, Buttermilk, and the like). Menus are also given a name to distinguish them.
You are asked to create such menus, but the price of these menus should not be the same as the items on the menu. It should receive a 10 percent discount on the main line, 20 percent on the side, and 50 percent on the drink.
In the main section, list the names of their menus and the food served. There should be two menus consisting of a main course, a side dish and a drink. Menus should be listed as items on the menu and their prices. After listing the menus, the products should be listed according to their name and price. WRITE JAVA CODE ACCORDING TO THIS
Step by step
Solved in 2 steps with 9 images