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
This topic: CenterForComputing
> WebHome >
Syllabi >
CSC121SylF2023 >
CSC121F2023Lab06 > CSC121F2023Lab06Hint1
Topic revision: r1 - 2023-06-19 - cathybareiss