Difference:
CSC121F2023Lab06Hint1
( vs. 1)
Revision 1
2023-06-19 -
cathybareiss
Line: 1 to 1
Added:
>
>
META TOPICPARENT
name="CSC121F2023Lab06"
Algorithm hint for lab 6
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
View topic
|
H
istory
:
r1
|
More topic actions...
Copyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback