Question
Introduction You are a programmer working for Bicycle Parts Distributorship. BPD has a warehouse full of bicycle parts. Each sales van is its own warehouse
Introduction
You are a programmer working for Bicycle Parts Distributorship. BPD has a warehouse full of bicycle parts. Each sales van is its own warehouse that has inventory. When a sales van is loaded with parts, the inventory in the main warehouse is decremented and the inventory in the sales van is incremented. Sometimes, a sales associate does not want to drive to the main warehouse to get a few parts. In these cases, sales associates agree to meet and move parts from one sales van warehouse to another.
Warehouse Parts Inventory Update
The warehouse parts inventory update shall be done by processing an inventory delivery file
Sales Van Parts Inventory Update from Main Warehouse
When a sales associate visits the warehouse to load their van with parts, the sales associate arrives with a sales van delivery file that describes the bicycle parts that are to be moved from the main warehouse onto their van. The file consists of a sequence of comma-separated lines. The first line contains the name of the main warehouse followed by the name of a destination van, where parts are moved from the main warehouse to the destination. Each of the remaining lines contains the name of the bicycle part and the quantity that is to be moved from the main warehouse into the sales van warehouse. The following is an example.
WarehouseThree,salesVanD
saddle,5
Sales Van Parts Inventory Update from a Sales Van
When sales associate A meets with a sales associate B to get parts, sales associate A arrives with a sales van delivery file that describes the bicycle parts that are to be moved from sales associate Bs van into sales associate As van. The file consists of a sequence of comma-separated lines. The first line contains the name of the source van followed by the name of a destination van, where parts are moved from the source to the destination. Each of the remaining lines contains the name of the bicycle part and the quantity that is to be moved from the source van to the destination van. The following is an example.
salesVanA,salesVanB
saddle, 4
When a sales van delivery file is processed in this case, the inventory in both the salesperson As delivery van warehouse and salesperson Bs delivery van warehouse are updated.
Program Functional Requirements
Your program shall accomplish the following.
Your program shall have a warehouse database. The first time your program runs the warehouse database shall be empty or nonexistent.
Your program shall read the warehouse database upon starting. This shall establish the initial inventory in your internal data structures.
Your program shall write the internal data structures to the warehouse database upon exiting. The inventory in your internal data structures shall be saved such that upon running your program again, it starts with the same data as it ended with.
Your program shall read inventory delivery files (e.g., inventory.txt) as input by the user. Reading inventory delivery files updates the data in your internal data structures as follows.
a)If the bicycle part is not a member of your internal data structure, the bicycle part is added.
b)If the bicycle part is in your internal data structure, the list price is updated, the sales price is updated, the on sale indicator is updated, and the quantity is added to the current quantity on hand.
Your program shall show the bicycle part information by name.
Your program shall sell a bicycle part by part number from a warehouse. The sell shall allow the user to specify the warehouse. When a bicycle part is sold, you shall do the following for the specified warehouse.
a)Display the part name, the part cost, which will be either the list price of sale price.
b)Display the time the part was sold.
c)Decrement the quantity.
Your program shall allow a new part to be entered interactively.
Your program shall display all parts in alphabetical order. This display shall show all inventory attributes (name, number, list price, sale price, on-sale indicator, quantity). The display alphabetical order shall allow specifying a particular warehouse as follows.
a)The total collection of warehouses
b)The main warehouse
c)Each individual sales van warehouse
Your program shall display all parts in part number order. This display shall show all inventory attributes (name, number, list price, sale price, on-sale indicator, quantity). The display part number order shall allow specifying a particular warehouse as follows.
a)The total collection of warehouses
b)The main warehouse
c)Each individual sales van warehouse
Your program shall allow the user to add a sales van to the fleet.
Your program shall allow a sales associate to move inventory from the main warehouse into the sales van warehouse.
Your program shall allow a sales associate to move inventory from another sales van warehouse into its sales van warehouse.
Object-oriented Requirements
Your program shall define and use a Java Interface as part of its solution.
User Interface Requirements
Your program shall have a JavaFX Graphical User Interface. The layout of the GUI panels is your design, but I recommend you create a simple interface.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started