Bill the special
A fish-market dispatch command prepares crate weight slips and a fixed-price crate bill. Fresh crates include the standard ice allowance; the day’s selected fish kind receives the special crate price.
What needs to change
Repair bill so each crate gets its fixed price for that fish kind and every bill line includes the running total.
Reproduce
- Compile with rustc, pipe the special and the sample fish into ./main and compare every line with the expected stdout.
Acceptance criteria
Your review marks · Saved in this browser. Test acceptance is tracked separately.
Notes
The file contains its imports, read_lines and the complete main, which passes the first line as special.
Input: the day’s special fish kind on the first line, then one crate’s fish kind per line. Prices are fixed per crate, independent of the earlier weight-slip calculation; the special price takes priority for its selected kind.