I'm lost in java, been looking at code for too long. I have a project that is due in a few hours time if anyone could help me out of this jam would mean a lot to me. Trying to make 2 arrays one called parts and one called inventory. If i try to explain anymore i might confuse what i'm trying to get out, here is my assinment any input to get me jump started would help will be at my computer all night till 4am working on this will check back every so offen:
The parts that the store has in inventory are as follows (the store has only one model/type of each part):
Box Motherboard Hard Drive RAM Floppy Drive Zip Drive DVD CD-RW CD Graphics Card Network card Mouse Keyboard Monitor For each part category in inventory you are to have the following information:
Part Number Part Description Number on Hand Number Added to Inventory to Date Number Removed from Inventory to Date Value of Each Part in that Category as Calculated by Weighted Average The weighted average is calculated by adding the value of the new part (price per part multiplied by the per part cost) to the value of the parts in inventory. The total number of parts in inventory is then divided by the total value of the inventory to get to the per part cost for example:
Part A:
Inventory on 01.01.03 is 0 parts @ $0.00 each, total $0.00 Purchased 100 parts @ $6.00 each on 01.02.03 Inventory on 01.02.03 is 100 parts @ $6.00, total $600.00 Purchased 50 parts @ $10.00 each on 01.03.03 Inventory on 01.03.03 is 150 parts @ $7.33 Purchased 50 parts @ $12.00 each on 01.04.03 Inventory on 01.04.03 is 200 parts @ $8.50 each, total $1,700.00 Issued 100 parts on 01.05.03 Inventory on 01.05.03 is 100 parts @ $8.50 each, total $850.00 Your program is to:
Allow the user to add to the inventory of each part category. Allow the user to remove from the inventory of each part category. Calculate the total value, number of parts and value per part of each inventory part category. Calculate the total value of all inventory part categories.