Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started