Question: This question tests your ability to write a professional quality well structured and readable C + + program. Namely a program that will pass a
This question tests your ability to write a professional quality well structured and readable C program. Namely a program that will pass a code review. The program will use three ASCII files. A Price file, a inventory file, and a sales file. These files are named: PriceFile, InventoryFile, and SalesFile. There will be one command line argument that will specify the directory in which all of these files reside. The price file will consist of one entry per line with the following fields:
MerchandiseName example Rubber Duck Price example
The sales file will consist of a set of lines each one describing the sale of one type of merchandise. There may be many lines with the same merchandise item listed. These lines will have the following fields:
MerchandiseName example CookieMonster Quantity example
Your program will be run at the end of each day to display in alphabetical order the names of the Merchandise sold followed by the quantity, followed by the total money taken in It will also update the inventory file.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
