Question: Write a C++ program which reads from a file inventory records of some items (inventory.txt), item and the price and the count of that item.
Write a C++ program which reads from a file inventory records of some items ("inventory.txt"), item and the price and the count of that item. The program calculates the total cost per item and the overall cost and the output should be saved in a file called("report.txt") as shown below. Font org inventroy.txt - Notepad Eile Edit Format View Help 101 1.5 1200 112 2.8 400 033 5.00 700 604 1.00 19001 Price Total coat 101 112 1.500 2.800 2000.000 1120.000 Use visual studio 2010 The overall cont - 320.000
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
