Create generic stack class called mystack to place furniture

Assignment Help Programming Languages
Reference no: EM13858264

A Wholesale furniture distributing company in Florida is providing furniture to 4 furniture stores.

Write an application to simulate distributing furniture from Whole sale center to different stores.

Concepts tested: FileChooser Read/Write files Exceptions Stacks, Queue Data Element - Furniture This class that holds the relevant information for a Furniture: name, color, and material.

Data Structures 1. Create a generic queue class called MyQueue to implement the assembly line. MyQueue will implement the QueueInterface given you.

2. Create a generic stack class called MyStack to place the furniture on a truck. MyStack will implement the Stack Interface given you.

3. The data structure to hold furniture at each store will be your choice.

There will be a Factory class and a Store class that extend Location. The Factory class will implement the FactoryInterface and the Store class will implement the StoreInterface. There will be a Truck class that implements TruckInterface.

Limit the size of each collection of furniture at the factory, on the truck, or at the stores to 10. Data Manager The furniture tracker manager will manage the factory's assembly-line queue, the truck's stack, and the store collections as described for the GUI Driver. Your class, FurnitureTrackerManager, will implement the interface FurnitureTrackerManagerInterface. GUI Driver 1. Provide a way for the user to read a set of furnitures from a file and add them to the factory's assembly line queue. Use the FileChooser to ask the user to select the file. The format of each line is: Name, Color, Material Elements of each line are separated by a comma. There are no blank lines in the file.

2. Initially list all furniture on the assembly line.

3. Allow the user to add furniture to the assembly line.

4. Allow the user to simulate each furniture's completion by loading it onto the delivery truck. The truck will load furniture in first-in, last-out order.

5. The truck will start at the factory. Then allow the user to cause the truck to visit the stores in order and then return to the factory.

6. When the truck is positioned at a store, allow the user to offload some of the furniture. Since the truck is represented as a stack, the last furniture loaded will be the first one offloaded. When the truck reaches the last store, consider that it returns to the factory to allow more furniture to be loaded from the assembly line.

7. Provide three exception classes: a. FurnitureTrackerNotInitializedException: If the furniture tracker manager is not initialized, the truck will not have an initial location, so throw this exception if the user tries to select any button before selecting the "New" button.

b. TruckLoadException - If the user attempts to load furniture when the truck is full (10 furnitures), or attempts to unload furniture when the truck is empty, throw this exception.

c. WrongLocationException - If the furniture is not at the factory when the user attempts to load furniture, or if it is not at a store when the user attempts to unload furniture, throw this exception.

Reference no: EM13858264

Questions Cloud

Explain the use of substances : What explanation can psychology give to explain the use of substances? Be sure to include the media influences that are represented in your poster (e.g., advertisements for the drug, or PSA clips against the drug) as well as information presented ..
Evaluate strategic approaches to innovation on performance : While the framework that Kim and Mauborgne (2004) outline may seem simple to understand, it is very difficult to implement. In part, it is very difficult for companies to do new things, or to do things in new ways, because inertia is real in all o..
Provide specific mitigation strategies : Provide specific mitigation strategies for any issues that could detract from the project
What treatments might be effective in treating it : What symptoms should her family/doctor look for that she has developed an eating disorder? If she develops this eating disorder, what treatments might be effective in treating it
Create generic stack class called mystack to place furniture : Application to simulate distributing furniture from Whole sale center to different stores -  Write an application to simulate distributing furniture from Whole sale center to different stores.
Discuss the pros and cons of proceeding : Discuss the pros and cons of proceeding
How to determine the malware in a computer : How to determine the malware in a computer
Identify and summarize the purpose of your interview : Identify and summarize the purpose of your interview. How will the information you gather be used? Explain how you will structure the interview and your reasoning behind the structuring of the interview
Evaluate the ability of the book or show to apply the method : Evaluate the ability of the book or show to apply the methods within the presented material to the target population. Describe any efforts on the part of the author(s) or host(s) to apply ethical principles and professional standards of psychology..

Reviews

Write a Review

Programming Languages Questions & Answers

  What criterion is being used to determine best estimates

What we would like to do is create similar tables in an .rtf file that produces the same statistics for any numerical value against each level of a know classification/factor from any data set we wish to inspect.

  Crossing a canyon on a cable bridge

Construct a Prolog program using in-depth research to find a solution to this problem. It must compile with no errors and follow the directions.

  Design program to enter a series of numbers

Design a program that asks the user to enter a series of 20 numbers. The program should determine whether the number is valid by comparing it to the following list of valid charge account numbers.

  Cate a function with the first line functionarrayout

create a function with the first line functionarrayout switcherooarrayin this function should take an array of any

  Determines the aproximate number

Show how this can be done in a loop so the user can see resuts in a table. Let the output display and have headings for Day and Number of Bacteria Present on that day?

  Write statement to call calculate interest method

Write the statement(s) necessary to call the calculate interest method with an account balance of $2300.00 and an interest rate of 5%.

  Write down a program which explores the seating patterns

write a program that explores the seating patterns related to course performance by using an array of student scores.

  Create a local variable that inherits the structure

Create a local variable that inherits the structure of the i_car table (using %ROWTYPE attribute). Place each row returned into this variable.

  Write lisp function to reverse order of the elements in list

Write a Lisp function that: given a two-element list, reverse the order of the elements in the list (cannot use the LISP reverse function).

  Write code for member method expand

Write code for the member method expand. To keep the code simple, you may assume that the array element has enough capacity and does not need to be resized.

  Write code for invoking method named sendtwo

Write the code for invoking a method named sendTwo. There are two arguments for this method: a double and an int.

  Also assume the air behaves as an ideal gas with constant

consider the evaporator section of a window air conditioner note the evaporator may be considered as a shell and tube

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd