1. Engineering
  2. Computer Science
  3. java programming chapter 12 debug wizard inventory create an application...

Question: java programming chapter 12 debug wizard inventory create an application...

Question details

Java Programming: Chapter 12 Debug: Wizard Inventory

Create an application that keeps track of the items that a wizard can carry.

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 cant 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! 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.

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution