a. Create a text file named parts.dat with the following data (without the headings): Part Number Initial Amount Quantity Sold Minimum Amount QA310 95 47 50 CM145 320 162 200 MS514 34 20 25 EN212 163 150 160

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter8: I/o Streams And Data Files
Section: Chapter Questions
Problem 9PP: (Inventory) Create an ASCII file with the following data, or use the shipped.dat file available on...
icon
Related questions
Question

9.
a. Create a text file named parts.dat with the following data (without the
headings):
Part Number Initial Amount Quantity Sold Minimum Amount
QA310 95 47 50
CM145 320 162 200
MS514 34 20 25
EN212 163 150 160
b. Write a C++ program to create an inventory report based on the data in the file created in
Exercise 9a. The display should consist of the part number, current balance, and the amount
needed to bring the inventory to the minimum level. The current balance is the initial
amount minus the quantity sold.

Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
File Input and Output Operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning