Question: Write a program using basic C++ to read the parts.txt file and display the cost of inventory for each of the part classes. The file
Write a program using basic C++ to read the parts.txt file and display the cost of inventory for each of the part classes. The file contains parts of class A, B, C and D. A typical line in the file would be:
P-11191 A 10 34.29
This is part number P-11191, a class A part, of which there are 10 in stock and each costs $34.29. Your program, therefore, would add 342.90 to class A inventory.
C:\Windows system321cmd.exe INUENTORY REPORT A parts Count: B parts Count: C parts Count: D parts Count: Unknown Count: Press any key to continue . . . 85 Ualue of inventory: 69 Ualue of inventory: 76 Ualue of inventory: 61 Ualue of inventory: 13 Ualue of inventory: 4282.68Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
