Computer Science Homework Solutions
Problem
#113369

Java Program - need to create GUI in three different steps

I have posted my JAVA inventory program so far. I need to do 3 more versions of this. I have been using JDK 1.5 to create my programs and will need help with the following versions using this same version. I put enough credits for all three problems as I feel the same person helping me along with this would be easiest, but I can break it down into 3 separate submissions if you want. I’m definitely struggling with JAVA so I need some guidance on the GUI!

The file attached isn't quite what it needs to be. According to my teacher - "I need only one new feature. I don't want to include the restocking fee and item fee in the constructor. Use the method to calculate the restocking fee to add to the inventory value. The way I did, I had to calculate by hand the item fees, which is unproductive. I want the computer to do the calculation for me." and "I should use a method to calculate the restocking fee. Do not enter manually. Let the program do the calculation." and "The total inventory should have only 2 decimals."

Version 1 (I need this in 3 days) - Modify the inventory program to use a GUI. The GUI should display the information one product at a time, including 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 (genre in my case), and the restocking fee.

Attached file(s):
Attachments
Inventory version 1.doc  View File
Inventory3.java  View File

Attachment Content Summary (Note: view attachment at the above link before purchasing. Actual attachment content may vary slightly from that shown below.)

Inventory version 1.doc
Inventory Program Version 1

Modify the Inventory Program 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.

Recommendations for Inventory Part 4

For this part 4, specify that the inventory class and the subclass
remain the same. Modify the inventoryTest class to include the GUI. How
do we want to see the display? There are 2 examples below.

Although the book discusses about the GUI, but it doesn’t give a good
example on using JLabel, JTextArea or JTextField. The students are
really stuck.

Please see example below.

This is an example using GUI to display the data with the new feature
being Rating and restocking fee of 5%.

This is another way of displaying the data.
Solution
What is this?
By OTA - Overall OTA Rating
Purchase Cost Now
$2.19 CAD (was ~$19.95)
Included in Download
  • Plain text response
  • Attached file(s):
    • Inventory1.zip
$2.19 Instant Download
Add to Cart
Why you can trust BrainMass.com
  • Your Information is Secure
  • Best Online Academic Help Service
  • Students find real academic Success
Related Solutions
  • The definition of a constructor. - What is a constructor?
  • Write a constructor - Can someone write a constructor method for the class "Dog" that uses the "this reference" and explain what it does?
  • Inventory Output - I cannot get it to display the restocking fee or even know how to type the code for it. I am lost. • Modify the Inventory Program by creating a subclass of the product class that uses one additional ...
  • Stuck on coding Java IOExceptions - My problem is an exception class called ChatIOException that extends from IOException that is imported from the java.io package in order to extend IOException. Also, the ChatIOException class is with ...
  • Java Programming - I'll give a start; this is the class definition; it has one member variable, one constructor method, and another public method: public class Car { private int no_doors; public Car(in ...
Browse