Menu of the Day Create a program that filters and displays the correct menu items based on the day that the user enters. Console Menu of the Day   COMMAND MENU Specify the day using the three-letter format (mon, tue, wed, thu, fri, sat, sun). Or, enter 'exit' to exit.   Day:  mon Roast beef               10 Potato soup              6 Baked cod                10   Day:  tue Butter chicken           11 Lamb tikka               12 German forest cake       7   Day:  exit Bye! Specifications A tab-delimited text file named menu.txt that contains the menu items for the current week is attached. Each item has a name (a string), price (an integer), and associated day (a string) Use a structure named MenuItem to store the name, price, and day for each menu item. When the program starts, it should load the items from the file into a vector of MenuItem objects. The user should be able to type a three-letter day code to display the menu items for the specified day. The user should be able to exit by typing “exit” when prompted for the day.

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter7: String Manipulation
Section: Chapter Questions
Problem 6E
icon
Related questions
Question

Menu of the Day

Create a program that filters and displays the correct menu items based on the day that the user enters.

Console

Menu of the Day

 

COMMAND MENU

Specify the day using the three-letter format (mon, tue, wed, thu, fri, sat, sun). Or, enter 'exit' to exit.

 

Day:  mon

Roast beef               10

Potato soup              6

Baked cod                10

 

Day:  tue

Butter chicken           11

Lamb tikka               12

German forest cake       7

 

Day:  exit

Bye!

Specifications

  • A tab-delimited text file named menu.txt that contains the menu items for the current week is attached. Each item has a name (a string), price (an integer), and associated day (a string)
  • Use a structure named MenuItem to store the name, price, and day for each menu item.
  • When the program starts, it should load the items from the file into a vector of MenuItem objects.
  • The user should be able to type a three-letter day code to display the menu items for the specified day.

The user should be able to exit by typing “exit” when prompted for the day.

 

Pleas help 

Expert Solution
Step 1

Given data,

Create a program that filters and displays the correct menu items based on the day that the user enters.

Console:

Menu of the Day

COMMAND MENU

Specify the day using the three-letter format (mon, tue, wed, thu, fri, sat, sun) Or enter 'exit' to exit.

 

Day:  mon

Roast beef               10

Potato soup              6

Baked cod                10

 

Day:  tue

Butter chicken           11

Lamb tikka               12

German forest cake       7

 

Day:  exit

Specifications:

  • A tab-delimited text file named menu.txt that contains the menu items for the current week is attached. Each item has a name (a string), price (an integer), and associated day (a string)
  • Use a structure named MenuItem to store the name, price, and day for each menu item.
  • When the program starts, it should load the items from the file into a vector of MenuItem objects.
  • The user should be able to type a three-letter day code to display the menu items for the specified day.
  • The user should be able to exit by typing “exit” when prompted for the day.
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Returning value from Function
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 with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT