-
- Goal #1: Implement
price
forFactory
- Goal #2: Implement
total_price
using the trait - Time: 10 minutes
- Goal #1: Implement
-
- Goal #1: Implement
total_price
, this time as a default method - Goal #2: Implement
price
forFactory
(just reuse the solution from previous) - Time: 5 minutes
- Goal #1: Implement
-
- Goal: Get
main
to compile by adding implementation(s) ofPrint
- Time: 10 minutes
- Goal: Get
- Basics
- Goal: join the threads and print out the store with the best price
- Extra credit #1: use channels instead
- Extra credit #2: or, instead of channels, use a mutex to compute the best price in the parallel threads themselves
- Time: 10 minutes