Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In C++, write a program for a food truck to automate its ordering system. Your program should store the following data about a Taco food

In C++, write a program for a food truck to automate its ordering system. Your program should store the following data about a Taco food trucks menu in a structure:

Field Name Description
item string (name of item)
type enum (type of item)
cost double
qty int

Use an enumerated type for the type field that contains the following enumerators: ENTRE, DRINK, DESSERT.

The program should create an array of 15 structures and initialize it with the data from the taco_menu.txt file.

Use a menu-driven interface to allow the user to:

1. Print all information for items of a particular type (read the type from the user).

2. Choose an item and quantity.

3. Print the total cost for all items currently selected, with tax (7%) and tip (15%).

4. Clear all current selections. Use a separate function to print the menu and implement each selection.

Your output should be well-organized, neat, and easy to read. (taco_menu.txt)

Hard-Shell Taco 0 1.25

Pop 1 1.50

Churro 2 0.99

Beef Burrito 0 2.99

Iced Tea 1 1.25

Apple Grande 2 2.49

Soft-Shell Taco 0 1.49

Bean Burrito 0 1.49

Lemonade 2 1.25

Steak Fajita 0 4.50

Nachos Supreme 0 5.25

Choco-Taco 2 1.75

Bottled Water 1 1.99

Empanada 2 2.25

Chicken Fajita 0 3.75

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Richard T. Watson

2nd Edition

0471180742, 978-0471180746

More Books

Students also viewed these Databases questions