This week's book giveaway is in the OCP forum.
We're giving away four copies of OCP Java SE 8 Programmer II Exam Study Guide and have Kathy Sierra, Bert Bates, & Elizabeth Robson on-line!
See this thread for details.
Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Noob question  RSS feed

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Most of the project is done but this section of it is challenging me, haven't a clue were too start;

With every item you need to be able to take on new stock as quantities reach re-order point, and issue stock when your customers request it.

You also need to be able to count the number of times goods were issued from each category and the total number of issues since the last time this information was displayed. NB – you do not need to count the quantity of items issued, just the number of times goods were issued to a customer since the last time this method was called



Basically the rest of the project was doing was being able to print of different sections (stock list, price list) from different subclasses.
 
Sheriff
Posts: 3015
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stock here refers to an item in stock, like at a retail store? I think you'll have to add member variables for quantity on hand, threshhold quantity for prompting a reorder, and a counter of how many times items have been issued, and appropriate interface methods for your requirements. For reorders, I imagine that you would periodically loop through all the stock items and call each one's reorder method, which would check the on-hand quantity vs. the threshhold and place an order as needed.

Also keep in mind to UseAMeaningfulSubjectLine
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!