Question: 1. the first picture is our assignment. 2. second and third pictures are my codes 3. picture is my output. now, my output is missing



Write a program to read the parts.txt file and display the cost of inventory for each of the part classes as shown below. The file contains parts of classes A. B, C, and D. A typical line in P.39457 A 16102.14 This is part number P-39457, a class A part, of which there are 16 in stock and each costs $102:14, Your program, therefore, would add 1634.24 (i.e. 16102.14) to the class A imventon The parts file is on Canvas in this week's module in .zip format. After downloading it, right-click and choose Extract. Download Paitsizie =. To make it easier for you, you can now download the partsitxt & directly and skip the step of unzipping the parts.rip file. while (inputetle m partnun ss cls quantty > price) if if(clsa-A)fpartAa+;partAprice-partAprice+price=quanity; inputFile. close(): cout fixed setprecision(2): double partuprice =0 while (tnputflle > partnun > cls > quanity >> prtce) \{
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
