Create a program that calculates and displays the average price stored in the file. Display the average with a dollar sign and two decimal places.

AleMonteiro commented: Did you read the forum rules? No home-work questions! We just help, we don't code for you! -2

Make effort. Post code. Post errors and problems. Not doing your homework for you, as per AleMonteiro.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.