Question: In c + + . 1 . open input file prices.txt . 2 . read and store data in an Array: inputFile > > prodNum;

In c++.1. open input file prices.txt.2. read and store data in an Array: inputFile>>prodNum; , use a loop to read and store the prices into an array of doubles with max of 12, count how many prices are in input file, need a counter and your loop will need to check for the end of fil marker. 3. calculate the highest and lowest price. 4. Calculate the average price. 5. display results in the following format: product number 11223, price changes 6, lowest price $475.25, highest price $535.00, average price $504.69.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!