Print the team cards
The reservation quote uses the board’s daily price for guests and a member price of 80 percent rounded down before multiplying by days. Team bookings must accumulate into the one coach supplied to all teams. The directory card shows a sponsor’s name and amount when present, or no sponsor when the embedded pointer is nil.
What needs to change
Repair card so every team prints a card, sponsored or not.
Reproduce
- Pipe the sample teams into go run main.go and compare each card line.
Acceptance criteria
Your review marks · Saved in this browser. Test acceptance is tracked separately.
Notes
The file contains its imports, readLines, Sponsor with its Banner method and the complete main.
Input: up to 50 whitespace-delimited "team sponsor amount" records, or just "team" when unsponsored. Names are opaque tokens; decimal whole amounts are 0..1000 with leading zeros allowed. A present sponsor may have amount 0. The supplied reader receives valid data.