Question
Asked by:
cameltop
 

$7.00 Inventory Program Part 4

Q:
Here is what i need tacked onto the attached file:

Modify the Inventory Program 3 to use a GUI. The GUI should display the information one product at a time, including the item number, the name of the product, the number of units in stock, the price of each unit, and the value of the inventory of that product. In addition, the GUI should display the value of the entire inventory, the additional attribute, and the restocking fee.
 
Attachments:
Inventory3.java (4K)


   
   
   
   
 
Available Tutorials to this Question
Posted by:
mareegirls
mareegirls
Rating (13): A-
Questions Asked: 23
Tutorials Posted: 10, earned $1,000.09
 

$15.00 Inventory 4

  • This tutorial was purchased 26 times and rated A+ by students like you.
  • Posted on Jul 11, 2007 at 12:18:17PM
A:
Preview: ... ave renamed it for the GUI. Good luck to you. There ...

The full tutorial is about 56 words long plus attachments.

Attachments:
ProductInventoryGUI.java (10K)
Posted by:
techy
techy
Rating (205): B+
Questions Asked: 2
Tutorials Posted: 637, earned $13,300.98
 

$10.00 Inventory Program part 4

  • This tutorial was purchased 7 times and hasn't been rated yet.
  • Posted on May 26, 2008 at 10:43:40PM
A:
Preview: ... ue<br> private double restockingFee;<br> <br> // initialize an empty OfficeSupply object<br> public OfficeSupply() {<br><br> super();<br><br> // the default restocking fee is 5%<br> this.restockingFee = 0.05;<br> }<br><br> // initialize an OfficeSupply object with the given information<br> public OfficeSupply(int theItemNumber, double theProductPrice, int theNumberInStock, String theProductName, String theManufacturer) {<br><br> // call the Product constructor<br> super(theItemNumber, theProductPrice, theNumberInStock, theProductName);<br> <br> // and fill in the extra details about an OfficeSupply<br> this.manufacturer = theManufacturer;<br> // the default restocking fee is 5%<br> this.restockingFee = 0.05;<br> }<br><br><br> // getter and setter for the OfficeSupply's Manufacturer<br> public void setManufacturer(String theManufacturer)<br> {<br> this.manufacturer = theManufacturer;<br> }<br> public String getManufacturer()<br> {<br> return manufacturer;<br> }<br> <br><br> // calculates the restocking fee of the OfficeSupply's based on a percentage of the value<br> public double getRestockingFee() // Figures restocking fee of inventory<br> {<br> return super.calculateValue() * restockingFee;<br> }<br> <br> // include a restocking fee in the inventory's value<br> public double calculateValue() // Figures total inventory value including restocking fee<br> {<br> return super.calculateValue() + getRestockingFee();<br> }<br><br> // returns a string representation of the item<br> public String toString()<br> {<br> return "Product Name : " + getprodname() + "\\n"<br> + "Manufacturer : " + getManufacturer() + "\\n"<br> + "Product Number : " + getitemnumber() + "\\n"<br> + "Product Price : " + NumberFormat.getCurrencyInstance(Locale.US).format(getprodprice()) + "\\n"<br> + "Number in Stock : " + getnuminstock() + "\\n"<br> + "Restocking Fee : " + NumberFormat.getCurrencyInstance(Locale.US).format(getRestockingFee()) + "\\n"<br> + "Value : " + NumberFormat.getCurrencyInstance(Locale.US).format(calculateValue());<br> }<br><br>}<br><br><br>// Class that represents a collection of OfficeSupply objects<br>class Inventory {<br> // place to store all the OfficeSupplys in the inventory<br> OfficeSupply[] inventory;<br> <br> // create an initially empty inventory capable of holding different OfficeSupplys<br> public Inventory( )<br> {<br> inventory = new OfficeSupply[0];<br> }<br> <br> // add the OfficeSupplys to the end of the inventory<br> public void addOfficeSupply(OfficeSupply new_OfficeSupply)<br> {<br> // create a new array of OfficeSupplys that can hold one more than the current array of OfficeSupplys<br> OfficeSupply[] new_inventory = new OfficeSupply[this.getSize() + 1];<br> <br> //copy all the old ones to the front of the new array<br> for (int i = 0; i < this.getSize(); i++) {<br> new_inventory[i] = inventory[i];<br> }<br> <br> // add the new OfficeSupply to the end of the new array<br> new_inventory[this.getSize()] = new_OfficeSupply;<br> <br> // replace the old inventory with the new one<br> inventory = new_inventory;<br> <br> }<br> // return the OfficeSupplys at the location index in the inventory <br> public OfficeSupply getOfficeSupply(int index)<br> {<br> return inventory[index];<br> }<br> <br> ...

The full tutorial is about 1604 words long plus attachments.

Attachments:
InventoryPart4.java (15K) (Preview)
Posted by:
B_W
B_W
Rating (432): A+
Questions Asked: 1
Tutorials Posted: 1734, earned $15,866.44
 

$10.00 Inventory Program Part 4 - Office Supplies - Received A+ 100%

  • This tutorial was purchased 3 times and hasn't been rated yet.
  • Posted on Mar 07, 2009 at 2:15:58PM
A:
Preview: ... time, including the item number, the name of the product, the number of units in stock, the price of each uni ...

The full tutorial is about 99 words long plus attachments.

Attachments:
ProductInventory4GUI.java (10K) (Preview)
Posted by:
HOMEWORKNERD
HOMEWORKNERD
Rating (484): B+
Questions Asked: 4
Tutorials Posted: 2686, earned $17,520.22
 

$27.49 IT215 IT 215 Inventory Program Part Complete 1 to 6 --> (1, 2, 3, 4, 5, 6) --> A+

  • This tutorial was purchased 1 time and hasn't been rated yet.
  • Posted on Aug 20, 2009 at 2:47:49PM
A:
Preview: ... attachm ...

The full tutorial is about 7 words long plus attachments.

Attachments:
1-6_java_from_manual.zip.zip (124K) 

 1-6_java_Supplementary.zip
 JIPartTwo.docx
 JIPartOne.docx
 JILogo.jpg
 ]

   
Join Now or Log In
Get Tutoring
Get Paid
Academic Honesty