【 課題 】次のような処理を行うプログラムを作れ。
Which kind of item do you want to add? [cd, book, novel, magazine]
>book
Author? >NAKANO, Hitori
Title? >The train man
ok.

Which kind of item do you want to add? [cd, book, novel, magagine]
>cd
Artist? >Low and Mighty Color
Title? >Pritz
ok.

Which kind of item do you want to add? [cd, book, novel, magagine]
>
[book] The train man (NAKANO, Hitori) [cd] Pritz (Low and Mighty Color) 2 item(s)

Which kind of item do you want to add? [cd, book, novel, magagine]
>
何も入力しなかった場合は今まで追加されたアイテムの一覧を出力する。
追加と一覧出力以外の機能はない。
一覧における項目の情報を次のように出力しなさい。
CD の場合 [cd] タイトル (アーティスト)
Book の場合 [book] タイトル (著者)
Novel の場合 [novel] タイトル (著者) p.ページ数
Magazine の場合 [magazine] タイトル vol.巻数 (出版社)
なお、novel と magagine に関するプロンプトは適当に作ること。
【 期限 】5月24日水曜日21時59分
【 補足 】継承について勉強した後の課題です。
力不足で考えても分かりません。時間があまりないのですがどなたかお願いします