Answered step by step
Verified Expert Solution
Link Copied!

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 2 fields:
MerchandiseName (example Rubber Duck) Price (example 5.99)
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 10)
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications Dexa 2023 Workshops 34th International Conference Dexa 2023 Penang Malaysia August 28 30 2023 Proceedings

Authors: Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil ,Bernhard Moser ,Atif Mashkoor ,Johannes Sametinger ,Maqbool Khan

1st Edition

303139688X, 978-3031396885

More Books

Students also viewed these Databases questions