Welcome to Dream.In.Code
Click Here
Getting Java Help is Easy!

Join 118,659 Java Programmers for FREE! Ask your question and get quick answers from experts. There are 857 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



Help with my inventory program

 
Reply to this topicStart new topic

Help with my inventory program

maximus32
post 3 Jul, 2008 - 06:44 PM
Post #1


New D.I.C Head

*
Joined: 1 Jul, 2008
Posts: 8

Here is my inventory program part 1 & @ assignment. I having trouble with the second part of this assignment. My biggest issue is trying to set up an array to pull information from the class inventory.. Can anyone help me understand what I am doin wrong

Here is the errors im geting for my array:

cannot find symbol
symbol: method: get dvdname, dvdnumber,dvdunits,dvdcost,inventoryvalue,totalavalue
location: class inventoryprogrampart1.inventory


Here is the assignment for part 2
1. CheckPoint: Inventory Program Part 2
• Resource: Java: How to Program
• Due Date: Day 4 [Individual] forum
• Modify the Inventory Program so the application can handle multiple items. Use an array to store the items. The output 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 output should display the value of the entire inventory.
• Create a method to calculate the value of the entire inventory.
• Create another method to sort the array items by the name of the product.
• Post as an attachment

Here is my code
CODE
1. CheckPoint: Inventory Program Part 2
• Resource: Java: How to Program
• Due Date: Day 4 [Individual] forum
• Modify the Inventory Program so the application can handle multiple items. Use an array to store the items. The output 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 output should display the value of the entire inventory.
• Create a method to calculate the value of the entire inventory.
• Create another method to sort the array items by the name of the product.
• Post as an attachment
User is offlineProfile CardPM

Go to the top of the page


pbl
post 3 Jul, 2008 - 08:11 PM
Post #2


D.I.C Lover

Group Icon
Joined: 6 Mar, 2008
Posts: 2,333



Thanked 135 times

Dream Kudos: 75
My Contributions


QUOTE(maximus32 @ 3 Jul, 2008 - 06:44 PM) *

Here is my code
CODE

1. CheckPoint: Inventory Program Part 2
• Resource: Java: How to Program
• Due Date: Day 4 [Individual] forum
• Modify the Inventory Program so the application can handle multiple items. Use an array to store the items. The output 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 output should display the value of the entire inventory.
• Create a method to calculate the value of the entire inventory.
• Create another method to sort the array items by the name of the product.
• Post as an attachment



Your code does not look as Java to me

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Please post like this:

Thank you for helping us helping you.
User is offlineProfile CardPM

Go to the top of the page

abgorn
post 4 Jul, 2008 - 01:31 AM
Post #3


D.I.C Addict

****
Joined: 5 Jun, 2008
Posts: 537



Thanked 2 times
My Contributions


I think you should use a vector because if you made an interface you can add a button to add or remove the items.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 10/12/08 04:03AM

Live Java Help!

Java Tutorials

Reference Sheets

Java Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month