• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Issues with adding restocking fee

 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic