Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is the program I am writing, can anyone please assist? ________________________________________________________________________ Tias Mexican Restaurant Write a program for ordering Mexican food. The program will

This is the program I am writing, can anyone please assist?

________________________________________________________________________

Tias Mexican Restaurant Write a program for ordering Mexican food.

The program will consist of several functions. All data must be validated (within its own data types) and must always allow the user to continue entering their choice until it is a valid input. Must always account for upper & lowercase letters on user input.

The main() function will call all of the other functions, will count the number of tacos, burritos, quesadillas, nachos, etc., and accumulate the total price. Your main() function may NOT include an IF statement, but rather must use a switch statement. Your main function will continue to add their order until they are finished and then display the totals.

You may only write the following user defined functions and they must operate in the manner specified.

A function that will display the following menu categories, allow the user to input their choice, validate their choice and return the valid choice.

Please choose from the following menu categories: T - Tacos B - Burritos Q - Quesadillas N - Nachos ------->

A function that will display the taco menu as shown below, allow the user to enter in their choice, validate their choice and return the appropriate price.

1 - Regular Taco $ 1.99 2 - Super Taco $ 2.99 3 - Veggie Taco $ 1.99 Choose a Taco:

A function that will display the burrito menu as shown below, allow the user to enter in their choice, validate their choice and return the appropriate price. 1 - Regular Burrito $ 2.99 2 - Super Burrito $ 3.99 3 - Veggie Burrito $ 2.99 4 - Bean & Rice Burrito $ 1.99 5 - Bean, Rice, & Cheese Burrito $ 1.99 6 - Burrito Bowl $ 4.99 Choose a Burrito:

A function that will display the quesadilla menu as shown below, allow the user to enter in their choice, validate their choice and return the appropriate price. 1 - Regular Quesadilla $ 1.99 2 - Meat Quesadilla $ 2.99 3 - Beef Quesadilla $ 3.99 4 - Super Quesadilla $ 4.99 Choose a Quesadilla:

A function that will display the nacho menu as shown below, allow the user to enter in their choice, validate their choice, then ask if they would like extra cheese, and if so, adjust the price, and return the appropriate price. 1 - Regular Nacho $ 3.99 2 - Super Nacho $ 5.99 Choose a Nacho: Would you like extra cheese for $1.00? Y/N

A function that will display all of the totals as follows. Only display a total for tacos, burritos, quesadillas, and nachos if they ordered them. Your order consists of: Total Tacos: Total Burritos: Total Quesadillas: Total Nachos: 1

Total Due $

Thank you for choosing Tias Mexican Restaurant!

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

Mobile Usability

Authors: Jakob Nielsen, Raluca Budiu

1st Edition

0133122131, 9780133122138

More Books

Students also viewed these Programming questions