Computer Science 161
Assignment #6
In the last lab exercise, you modified your Inventory class to introduce a removePart(int index) method which checked the index, retrieved the part to be removed, retrieved the name of the part to be removed, and then printed a message displaying the part name and asking the user if that was the part to be removed. You then used the Scanner class to accept a yes or no, and then performed the action indicated (no action if the user did not confirm) printing a message either way.
Modify the removePart method of the Inventory class again, but this time