Question: java 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

java
java 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

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 "Pojava Once youve created a Taco object print out the toString method by printing out the object. Remember that you don't need to do "System.out.printirtaco.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 "Tacojava class accepts a single String Processing - Create a Taco object - Assign input to Taco object Noter 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 Tacojava' object class. All you need to do is print it out Sample input/output: Sample Input Note: This is all on a single line! Sample Output false true lettuce tomato falafel garlic sauce Shell: soft Order: Logo Ingredients: lettuce tomato falafel garlic sauce * POD.java Taco.java New 1 - /** 2 * CSCI 1110 3 * @author Your Name 4 5 6 7. import java.util.Scanner; 8 9. public class POD { 10 11 12 13 14 public static void main(String [] args) { // PLEASE START YOUR CODE HERE // ***** 15 16 17 18 19 20 21 22 23 24 25 26 27 } 28 // ***** //PLEASE END YOUR CODE HERE System.out.print("END OF OUTPUT"); } Exit Full Screen PoD.javao Tacojava New 6 public class Taco 7. { 8 Vattributes 9 private boolean shell; 10 private boolean togo; 11 private String ingredients: 12 13 //constructor public Taco 15 { 16 shell = true; 17 ingredients "none": 18 togo true; 19 } 20 21 // Getter's 22 public boolean get Shell Ofreturn shell;} 23 public boolean get Togo {return togo; } 24 public String getIngredients [return ingredients;} 25 26 V/Setters 27 public void set Shellhoolean shell){this.shell - shell:} 28 public void set Togo boolean togo){this.togo togo; } 29 public void set Ingredients(String ingredients){this ingredients ingredients;} 30 31 32 public String toString() 33 34 String order ""; 35 if(shell) 36 order "Shell: hard "; 37 else public String toString() { String order if(shell) order += "Shell: hard "; else order +- "Shell: soft "; if(togo) order "Order: togo "; else order = "Order: not togo "; order += "Ingredients: ingredients; return order; } }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!