• Post Reply Bookmark Topic Watch Topic
  • New Topic

Issues with adding restocking fee  RSS feed

 
Amie Mac
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am now working on Part 3 of my Inventory Program. I had to add another class to extend the Inventory class and add another feature (which I added author). I also had to calculate the Restocking fee of 5% and add it to the total inventory price. I thought I had all this down, and it's displaying everything in the output, however it's not adding the restocking fee to my total inventory. It should add the 5% restocking fee to the price of the item and then multiply it by how many are in stock, and this should be the total inventory value. I would greatly appreciate if someone could help me out... is my calculation wrong? Thanks

Here's the code:

Books.java

Inventory.java

InventoryLauncher.java
 
Amie Mac
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I figured out what I did wrong and got it all working!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!