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.

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter2: Elements Of High-quality Programs
Section: Chapter Questions
Problem 1GZ
icon
Related questions
Question

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

Expert Solution
steps

Step by step

Solved in 2 steps with 9 images

Blurred answer
Knowledge Booster
Module hierarchy chart
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT