Question
Instructions For as long as you can remember, you've never been able to get a taco on Tuesday at your local taco dispensary. The lines
Instructions
For as long as you can remember, you've never been able to get a taco on Tuesday at your local taco dispensary. The lines are always too long and the staff are very overwhelmed. You take it upon yourself to streamline the taco ordering process to decrease the mean time of getting a taco. You decide to create a process that will take customer orders and print them out in a neat and understandable format.
To increase the efficiency of your code, you're going to use the `Taco.java` class for every taco. You're going to write the process of creating a taco object from an order in `PoD.java`.
Once you've created a Taco object, print out the `toString()` method by printing out the object. Remember that you don't need to do `System.out.println(taco.toString())`. Calling `toString()` is unnecessary.
Details
Input
You will be given the following parameters in this order: - a boolean (shell): the shell type (hard or soft) - a boolean (togo): if the order is to eat in or out - a list of ingredients (ingredients): a list of Strings describing which ingredients are in the taco. The `Taco.java` class accepts a single String.
Processing
- Create a Taco object - Assign input to Taco object Note: Use `nextBoolean()` for getting the next boolean. - Print out Taco object
Output
The format of the input is given to you by the `toString()` method in the `Taco.java` object class. All you need to do is print it out.
Sample input/output:
Note: This is all on a single line!
input false true lettuce tomato falafel garlic-sauce
output
Shell: soft Order: togo Ingredients: lettuce tomato falafel garlic-sauce
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started