Basic Array question

This is a discussion on Basic Array question within the C++ Programming forums, part of the General Programming Boards category; For some reason when I run the program I output hexidecimals. Can anyone help me with this and point me ...

1. Read data from the keyboard in the form
vitamin price quantity
2. Call a function that will return the total value of the store's inventory for that one vitamin product (unit_price* number_of_jars).

You will also calculate:

The average price of a vitamin
The total inventory (total number of jars)