Simulate distributing furniture from wholesale to stores

Assignment Help JAVA Programming
Reference no: EM13858387

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 therelevant 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 aStoreclass 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 storecollections 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 furnituresfrom 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 furnitureontheassembly 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 thestores 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.


Attachment:- ass.zip

Reference no: EM13858387

Questions Cloud

Write a generic linked list tree : Write a generic linked list tree and a generic linked list binary search tree class that inherits from your generic linked tree class
A compound is composed of only c : A  compound is composed of only C, H, and O. The combustion of a 0.519-g sample of the compound yields and 0.255 g of H2O. what is the empirical formula of the compound?
Determine the various roles that host governments played : Determine the various roles that host governments played in this particular global business operation
Explore the internet to see what real complaints look like : In your discussion this week, you will explore the Internet to see what real complaints look like. The plaintiffs in this complaint are represented by a large law firm, but it's reasonable to assume that most of the drafting and pre-complaint inve..
Simulate distributing furniture from wholesale to stores : 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.
Chlorofluorocarbons (cfc''s) are organic compounds : Chlorofluorocarbons (CFC's) are organic compounds that have been implicated in ozone depletion. When the CFC known as Freon 12 (CCl2F2) is exposed to UV radiation (wavelength in the range of 10 nm to 400 nm, a bit shorter than visible light), a chlor..
Mean and standard deviation for the total bicycle : (a)What are the mean and standard deviation for the total bicycle setup time?
The boyle temperature in terms of a and b : One can derive the following relationship between the a and b coefficients in the van der Waals equation of state and the second virial coefficient, B2V=b-a/RT.
How the cultural differences in the ethical norms and codes : Provide an explanation of how the cultural differences in the ethical norms and codes of conduct in your chosen countries might affect a public administrator's perception of human rights within that country

Reviews

Write a Review

JAVA Programming Questions & Answers

  Write down an applet which displays a 4x4 grid when the

write an applet that displays a 4x4 grid. when the user clicks on a square in the grid the applet should draw a filled

  Create and code a program uses three parallel numeric array

Create and code a program that uses three parallel numeric arrays of size 6. The program searches one of the arrays and then displays the corresponding values from the other two arrays. The program should prompt the user to enter a ProductID. Valid P..

  Write class encapsulating the concept of weather forecast

Write a class encapsulating the concept of the weather forecast, assuming that it has the given attributes: the temperature and the sky conditions, which could be sunny, snowy, cloudy, or rainy.

  Give at least one constructor without any parameter

We learned as popular Set implementation. Write own TreeSet class that implements following interface: You are to give at least one constructor without any parameter.

  Write a program displaying a text file that is in a text are

Write a program displaying a text file that is in a text area. The user enteres a file name in a text field and clicks the view button; the file is then displayed in the text area. Do not use BufferedInputStream.

  Write a program in Java to check if a number is even

Write a program in Java to check if a number is even or odd in Java?

  Write function in javascript to compute person-s gross pay

Write the function using JavaScript syntax to compute a person's gross pay for a week. The function should receive the number of hours worked and the rate of pay per hour.

  Develops algorithms for problem solving

The graduate designs and develops algorithms for problem solving and implements those algorithms using appropriate program code.

  Write a java program and pseudocode to read a number

Write a java program and pseudocode to read a number up to 15 digits long or a date (dd/mm/yyyy). The program should distinguish numbers from input date, and prints them in alphabetic spelling form

  Create a windows form with two textboxes and a button

Create a Windows form with two textboxes and a button. Rename the form and button to "Move Text." When the button is depressed, copy the text from the first textbox into the second, then clear the contents of the first textbox

  Implement a single threaded game engine

Implement a single threaded game engine and single player user interface for a casino style dice game. The rules are simple, the player places a bet and then rolls two dice before the house rolls against the player

  Design a war game that you can play against the computer

Create a Card class to store a single playing card.  Create a class called DeckOfCards that stores 52 objects of the card class.  Create appropriate constructors and methods for each class that allow for the following requirements.

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