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

  Program to compute total price of items before tax

Program is to compute total price of items before tax and then tax payable on those items. Tax payable is computed by applying tax rate percentage to total price.

  You have been tasked with building a payroll program for a

you have been tasked with building a payroll program for a large organization with offices spread across the united

  Program to read from an input file

Write a program to read from an input file for 15 students, that contains each individual student ID, the course code, letter grade, and credit hours for five courses.

  In what stage of the programming process are flowcharts used

In what stage of the programming process are flowcharts and pseudocode used

  How many credits they have taken in network systems

Write a program that will take in basic information from students, including their names and how many credits they have taken in Network Systems Administration program

  Explaining class with no constructors

How many constructors can a class have? Can you have a class with no constructors? If a class has more than one constructor, which of them gets called?

  Explain immediate addressing mode

Expand your program in Part 1 to allow the operand use the "immediate" addressing mode. That is, the value of an operand is stored in the instruction. It should be assumed that the value operand is given as a decimal number.

  Q1determine which product characteristics are significant

q1determine which product characteristics are significant and what would you recommend for the next investigative

  Explain usability and accessibility in site design

A description of content to be included in site and how this content will be acquired. Attention should be given to copyright restrictions.

  Write a program sequence that places the value in address

Write a program sequence that places the value in Address $1000 into Accumulator A and places the value in Address $1001 in Accumulator B. Then, add these values together and store the result in Location $1002.

  Write a prolog relation remove

Write a Prolog relation remove(E,L,R) that is true if R is the list which results from removing one instance of E from list L. The relation is false if E isn't a member of L.

  Write program in mips to compute average of series of number

Write program in MIPS which computes average of a series of entered numbers. User will enter a sequence of integers. When the user enters a negative number.

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