Question: In c + + . 1 . open input file prices.txt . 2 . read and store data in an Array: inputFile > > prodNum;
In c open input file prices.txt read and store data in an Array: inputFileprodNum; use a loop to read and store the prices into an array of doubles with max of count how many prices are in input file, need a counter and your loop will need to check for the end of fil marker. calculate the highest and lowest price. Calculate the average price. display results in the following format: product number price changes lowest price $ highest price $ average price $
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
