Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started