Store the following data in a file named Data2 txt QA310 95

Store the following data in a file named Data2. txt QA310 95 47 50 CM145 320 162 200 MS514 34 5 25 EN212 163 150 160 Each line contains a part number, the initial amount in stock, the quantity sold and the minimum level of stock the stock should keep. Write a complete C + + program which reads the data from the file you created in part a) and creates an inventory report for this data. The display should consists of the part number, the initial balance, the quantity sold, the minimum stock level, the current balance and the number that needs to be ordered to bring the inventory back up to the minimum level. The current balance is the initial amount minus the quantity sold. The amount to order is the difference between the minimum stock and what is in stock. If the amount in stock is greater than or equal to the minimum stock, then there is no need to order any of that item. The report should also display the total number of units sold (the sum of all the sold items). Given the data in part a), your program should produce the following output to the screen.

Solution

//This would take more than a usual time frame (around 4 hrs) to code, But in this given time frame I have managed to code this according to the given inventory sample in your question. Hope this will help you.

Code to Copy:

 Store the following data in a file named Data2. txt QA310 95 47 50 CM145 320 162 200 MS514 34 5 25 EN212 163 150 160 Each line contains a part number, the init

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site