Question: Java Programming: Chapter 12 Debug: Wizard Inventory Create an application that keeps track of the items that a wizard can carry. Specifications: Use an array
Java Programming: Chapter 12 Debug: Wizard Inventory
Create an application that keeps track of the items that a wizard can carry.
Specifications:
Use an array list to store the items. Provide three starting items.
The wizard can only carry four items at a time.
For the edit and drop commands, display an error message if the user enters an invalid number for the item.
When you exit the program, all changes that you made to the inventory are lost.
Console The Wizard Inventory game COMMAND MENU show - Show all ite 8 grab - Grab an item edit-Edit an item drop - Drop an item exit - Exit program Command: show 1. wooden staff 2. wizard hat 3. cloth shoes Command: grab Name: potion of invisibility potion of invisibility was added Command: grab You can't carry any more items. Drop something first Command: show 1. wooden staff 2. wizard hat 3. aloth shoes 4. potion of invisibility Command: edit Number:1 Updated name: magic wooden staff Item number l was updated Command: drop Number: 3 cloth shoes was dropped Command: exit Bye
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
