Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The Burger class must not use any other class, nor plain Java arrays. It must only use the MyDeque class to store and manipulate ingredients.

The Burger class must not use any other class, nor plain Java arrays. It must only use the
MyDeque class to store and manipulate ingredients. Hint: You may use a recipe deque in
your program that has the complete burger according to the recipe.
Finally, your program will also provide a Main class that is used to read in the input file and test
and run the Burger class.
public class Main plain class declaration.
public static void main(String[] args) method used to run the program and test the
program elements. The input file containing the list of burger orders is to be passed as a
command line argument, so that the file name is available to your program as args[0].
void parseLine(String line) parses a line of input from the file and outputs the burger.
void testMyDeque() test method for MyDeque.
void testBurger() test method for Burger.
You may use List types in the main and you may create any other (private or public) classes that
you expect will be useful in your simulation. However, your solution must use the Burger class
and the MyDeque class as described.
Also, none of those classes may be in a named package (just define them without a Java package
clause).

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

Advances In Spatial And Temporal Databases 8th International Symposium Sstd 2003 Santorini Island Greece July 2003 Proceedings Lncs 2750

Authors: Thanasis Hadzilacos ,Yannis Manolopoulos ,John F. Roddick ,Yannis Theodoridis

2003rd Edition

3540405356, 978-3540405351

More Books

Students also viewed these Databases questions

Question

2. Define identity.

Answered: 1 week ago

Question

1. Identify three communication approaches to identity.

Answered: 1 week ago

Question

4. Describe phases of majority identity development.

Answered: 1 week ago