Implement the assembly line

Assignment Help JAVA Programming
Reference no: EM13853997

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.


Attachment:- Assignment.rar

Reference no: EM13853997

Questions Cloud

What is the marginal product-total product for each month : The Green City Hospital treated 100 patients in May with 20 nursing hour inputs, and it treated 120 patients in June with 22 nursing hour inputs. What is the total product for each month? What is the marginal product?
What is the price elasticity of demand of a firm : What is the marginal revenue of a firm that sells a product at the price of $15 and the price elasticity of demand for the product is -2? What is the price elasticity of demand of a firm that sells a product for $20 and marginal revenue is $12?
Calculate the standard deviation : Calculate the variance of x=(6, 8, 10 ) BY HAND, showing all the necessary calculations. Calculate the variance of x=( 1, 4, 2, 5 ) BY HAND, showing all the necessary calculations. Calculate the standard deviation of x=( 1, 4, 2, 5 ) BY HAND, showing..
Individuals who die before the end of the year : Individuals who die before the end of the year cannot be claimed as dependents.
Implement the assembly line : Provide a way for the user to read a set of furnitures from a file and add them to the factorys assembly line queue - Create a generic queue class called MyQueue to implement the assembly line.
Marginal cost and marginal revenue will both rise : Suppose a monopolist is producing a level of output such that MR > MC. Which of the following best describes what will happen as the firm moves to its profit-maximizing equilibrium? Select one: a. Marginal revenue will rise and marginal cost will fal..
Change inures remuneration from salary to fee for service : Given the production function between nurse hours and patient visits per day to a community clinic, how will each of the following shift this function? A change inures remuneration from salary to fee for service. A change in the case mix of patients,..
What are the costs of operating the clinic : St. Mary's Hospital owns a prime piece of real estate in the center of town. There is a small shopping center on this piece of land. Rents for each store are $4,000 per month. The benefactor of this real estate, in her endowment to St. Mary's, stated..
Investing for dummies : Indicate whether each of the following is counted in this year’s GDP: a. you bought a new Wii at GameStop last year and resold it on eBay this year. b. You purchase an “Investing for Dummies” book at Barnes and Noble. c. You purchase a historic home ..

Reviews

Write a Review

JAVA Programming Questions & Answers

  I had to call a webservice

I had to call a webservice (1st line of code) and then from there created a loop but keep getting an error every time on the .getBusiness - I don't know what I should be using there instead of getBusiness.

  What aspects of judaism are rejected or reinterpreted

What theology does Jesus present in the two excerpts from the Gospels that are a part of the readings? What aspects of Judaism are strongly represented? What aspects of Judaism are rejected or reinterpreted?

  Write a java program the displays the state bird

Write a Java program the displays the State bird and flower. The program should prompt the user to enter a State and print both the State bird and flower.

  Create an employee class

Create an Employee class. Items to include as data members are employee number, name, data of hire, job description, department, and monthly salary. The class is often used to display an alphabetical listing of all employs.

  Write an application that displays the factorial

Write an application that displays the factorial for every integer value from 1 to 10. A factorial of a number is the product of that number multiplied by each positive integer lower than it.

  Write a bluej project- birthday paradox

The birthday paradox states that if there are 23 people in a room then there is a slightly more than 50:50 chance that at least two of them will have the same birthday.

  Hypothetical situation

Hypothetical Situation - A company lowers its price of an economy car a small amount   ($15,000 to $14,000) Sales go from 10,000 units to 50,000 units. Another company lowers its price on a luxury car a large amount ($80,000 to $40,000). Its sales go..

  Concept of operator overloading

This lab is to introduce students to the concept of operator overloading as member functions of a class. This will be done in the context of creating a class that will perform four basic mathematical operations on complex numbers

  Requests 2 numbers from the user and then passes

Write a program in java that requests 2 numbers from the user and then passes these 2 numbers to a method findMax that displays the largest number. Make sure your method is called fron main(). Test the method by passing various data to it

  Write and run a java program

Write and run a Java program which allows the user to input two doubles and outputs the greater of the two?

  Java program by array

Write a program that reads in a file that contains one integer per line. Each integer represents one location in the image. Assume that there are 64 rows and 64 columns in the image

  supply a student tester class that tests all methods

Implement a class Student. For the purpose of this exercise, a student has a name and a total quiz score. Supply an appropriate constructor and methods getName( ), addQuiz(int score), getTotalScore( ), and getAverageScore ( ).

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