The local taqueria now wants some help with their kitchen system.  There are four types of burritos: carnitas, beef, shrimp, and vegetarian. They would like you to create a program to send an alert to the kitchen if there is a shrimp burrito in a given order.   Your main() function should prompt the user for the number of burritos in the order, and then enter all the burrito types for the order.  The burrito types should be stored in an array of strings.  You'll also need to store the number of burritos in the order.  You can assume that no order will have more than 10 burritos.  You can assume that the user only types in valid types of burritos, e.g. carnitas, beef, shrimp, vegetarian. The shrimp burrito must be cooked to order and thus takes longer to prepare than the other kinds.  Because of this, an alert is needed ASAP if there is a shrimp burrito in the order.   Write a function which takes two parameters: your array of burrito strings, and the number of burritos in the array.  It should determine if there are any shrimp burritos in the array and print out an alert if so.  You must write a function for this alert, this can't be in main().  Hint: you don't need to use a 2D array to do this!  A single array of type string is best. Two sample outputs are shown below, one with a shrimp in the order, one with no shrimp in the order.  User input in bold:

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
  • The local taqueria now wants some help with their kitchen system.  There are four types of burritos: carnitas, beef, shrimp, and vegetarian. They would like you to create a program to send an alert to the kitchen if there is a shrimp burrito in a given order.  
  • Your main() function should prompt the user for the number of burritos in the order, and then enter all the burrito types for the order.  The burrito types should be stored in an array of strings.  You'll also need to store the number of burritos in the order.  You can assume that no order will have more than 10 burritos.  You can assume that the user only types in valid types of burritos, e.g. carnitas, beef, shrimp, vegetarian.
  • The shrimp burrito must be cooked to order and thus takes longer to prepare than the other kinds.  Because of this, an alert is needed ASAP if there is a shrimp burrito in the order.   Write a function which takes two parameters: your array of burrito strings, and the number of burritos in the array.  It should determine if there are any shrimp burritos in the array and print out an alert if so.  You must write a function for this alert, this can't be in main(). 
  • Hint: you don't need to use a 2D array to do this!  A single array of type string is best.
  • Two sample outputs are shown below, one with a shrimp in the order, one with no shrimp in the order.  User input in bold:

How many burritos are in the order?  3
What is burrito 1:  beef
What is burrito 2:  beef
What is burrito 3: shrimp
There is a shrimp in the order!

How many burritos are in the order? 2
What is burrito 1:  chicken
What is burrito 2: veggie
There is no shrimp in the order.

The local taqueria now wants some help with their kitchen system. There are
the same four types of burritos as question 1: carnitas, beef, shrimp, and
vegetarian. They would like you to create a program to send an alert to the
kitchen if there is a shrimp burrito in a given order.
Your main() function should prompt the user for the number of burritos in the
order, and then enter all the burrito types for the order. The burrito types
should be stored in an array of strings. You'll also need to store the number of
burritos in the order. You can assume that no order will have more than 10
burritos. You can assume that the user only types in valid types of burritos, e.g.
carnitas, beef, shrimp, vegetarian.
• The shrimp burrito must be cooked to order and thus takes longer to prepare
than the other kinds. Because of this, an alert is needed ASAP if there is a
shrimp burrito in the order. Write a function which takes two parameters: your
array of burrito strings, and the number of burritos in the array. It should
determine if there are any shrimp burritos in the array and print out an alert if
so. You must write a function for this alert, this can't be in main().
Hint: you don't need to use a 2D array to do this! A single array of type string is
best.
Two sample outputs are shown below, one with a shrimp in the order, one with
no shrimp in the order. User input in bold red:
How many burritos are in the order? 3
What is burrito 1: beef
What is burrito 2: beef
What is burrito 3: shrimp
There is a shrimp in the order!
How many burritos are in the order? 2
What is burrito 1: chicken
What is burrito 2: veggie
There is no shrimp in the order.
Transcribed Image Text:The local taqueria now wants some help with their kitchen system. There are the same four types of burritos as question 1: carnitas, beef, shrimp, and vegetarian. They would like you to create a program to send an alert to the kitchen if there is a shrimp burrito in a given order. Your main() function should prompt the user for the number of burritos in the order, and then enter all the burrito types for the order. The burrito types should be stored in an array of strings. You'll also need to store the number of burritos in the order. You can assume that no order will have more than 10 burritos. You can assume that the user only types in valid types of burritos, e.g. carnitas, beef, shrimp, vegetarian. • The shrimp burrito must be cooked to order and thus takes longer to prepare than the other kinds. Because of this, an alert is needed ASAP if there is a shrimp burrito in the order. Write a function which takes two parameters: your array of burrito strings, and the number of burritos in the array. It should determine if there are any shrimp burritos in the array and print out an alert if so. You must write a function for this alert, this can't be in main(). Hint: you don't need to use a 2D array to do this! A single array of type string is best. Two sample outputs are shown below, one with a shrimp in the order, one with no shrimp in the order. User input in bold red: How many burritos are in the order? 3 What is burrito 1: beef What is burrito 2: beef What is burrito 3: shrimp There is a shrimp in the order! How many burritos are in the order? 2 What is burrito 1: chicken What is burrito 2: veggie There is no shrimp in the order.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY