Homework
Homework — your Item struct
Now — YOUR app. The three loose variables become one record of your own type.
Requirements:
type Item structwith at least 3 fields from your lesson-1 submission (correct types).- A doc comment above the type (
// Item is one ...). - One record created with a literal using field names.
formatItem(it Item)andprintItem(it Item)— the functions take the record, not loose fields.- Output identical to before (fourth refactor — behavior protected).
To submit: the code file + the output.
Tip. Your app currently prints one record and… ends. Next lesson is the big break: a
for+switchmenu loop, and for the first time the program RUNS — it spins, listens for commands and reacts until you say "enough".