Jaguar: Quantity = 2, Total cost = 2100000.0
Neon: Quantity = 3, Total cost = 52375.32
Jigsaw: Quantity = 1, Total cost = 149.18
RAM: Quantity = 1, Total cost = 35700.0
CircularSaw: Quantity = 2,...
Type: Posts; User: maple1100
Jaguar: Quantity = 2, Total cost = 2100000.0
Neon: Quantity = 3, Total cost = 52375.32
Jigsaw: Quantity = 1, Total cost = 149.18
RAM: Quantity = 1, Total cost = 35700.0
CircularSaw: Quantity = 2,...
Is there another way to print out the results? That the only wait I could of think, as it complete the inner loop, it print.
Oh, I don't mean to code it for me. I updated the code with the loop going through and keeping the quantity above, but it printing all the items. IE if there 2 item A, it would print item A two time...
Chris, thanks for the reply! Can you give me help on my updated code above? Thanks
takeInventory suppose to keep count of the items that passes through and print their quantity. The result I'm getting is
"guar: Quantity = 2, Total cost = 1110000.0
Neon: Quantity = 3, Total cost...