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.68

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!