Question: FULLY AUTOMATIC VENDING MACHINE - dispenses your cuppa on just press of button. A vending machine can serve range of products as follows: Coffee 1. Espresso Coffee 2. Cappuccino Coffee 3. Latte Coffee Tea 1. Plain Tea 2. Assam Tea 3. Ginger Tea 4. Cardamom Tea 5. Masala Tea 6. Lemon Tea 7. Green Tea 8. Organic Darjeeling Tea Soups 1. Hot and Sour Soup 2. Veg Corn Soup 3. Tomato Soup 4. Spicy Tomato Soup Beverages 1. Hot Chocolate Drink 2. Badam Drink 3. Badam-Pista Drink Write a program to take input for main menu & sub menu and display the name of sub menu selected in the following format (enter the first letter to select main menu): Welcome to CCD Enjoy your Example 1: Input: C 1 Output Welcome to CCD! Enjoy your Espresso Coffee!

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
15. Take input for main menu and display name of sub menu selected. Need C, C++, Java, Python, or Perl code for the below question. Important: Do not copy codes from prepinsta.com.
Example 2:
Input:
t
9
Output
INVALID OUTPUT!
C Code:
Transcribed Image Text:Example 2: Input: t 9 Output INVALID OUTPUT! C Code:
Question: FULLY AUTOMATIC VENDING MACHINE - dispenses your cuppa on just
press of button. A vending machine can serve range of products as follows:
Coffee
1. Espresso Coffee
2. Cappuccino Coffee
3. Latte Coffee
Tea
1. Plain Tea
2. Assam Tea
3. Ginger Tea
4. Cardamom Tea
5. Masala Tea
6. Lemon Tea
7. Green Tea
8. Organic Darjeeling Tea
Soups
1. Hot and Sour Soup
2. Veg Corn Soup
3. Tomato Soup
4. Spicy Tomato Soup
Beverages
1. Hot Chocolate Drink
2. Badam Drink
3. Badam-Pista Drink
Write a program to take input for main menu & sub menu and display the name of
sub menu selected in the following format (enter the first letter to select main
menu):
Welcome to CCD
Enjoy your
Example 1:
Input:
C
1
Output
Welcome to CCD!
Enjoy your Espresso Coffee!
Transcribed Image Text:Question: FULLY AUTOMATIC VENDING MACHINE - dispenses your cuppa on just press of button. A vending machine can serve range of products as follows: Coffee 1. Espresso Coffee 2. Cappuccino Coffee 3. Latte Coffee Tea 1. Plain Tea 2. Assam Tea 3. Ginger Tea 4. Cardamom Tea 5. Masala Tea 6. Lemon Tea 7. Green Tea 8. Organic Darjeeling Tea Soups 1. Hot and Sour Soup 2. Veg Corn Soup 3. Tomato Soup 4. Spicy Tomato Soup Beverages 1. Hot Chocolate Drink 2. Badam Drink 3. Badam-Pista Drink Write a program to take input for main menu & sub menu and display the name of sub menu selected in the following format (enter the first letter to select main menu): Welcome to CCD Enjoy your Example 1: Input: C 1 Output Welcome to CCD! Enjoy your Espresso Coffee!
Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Problems on Turing Machines
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.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education