Algorithm hint for lab 6

19 Jun 2023 - 14:56 | Version 1 |
  • Using a priming read for your main loop
  • To process an item:
    • find its location. If that returns a -1 print an error message and return
    • find the current amount on hand (there is a method for this)
    • find the reorder amount (you can reuse a method for this)
    • if current is >= reorder amount, no ordering is necessary
    • else reorder the difference
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback
This website is using cookies. More info. That's Fine