Question: Problem: Write a C++program that will allow a user to manage the inventory of a small store that sells various products of any type. The

 Problem: Write a C++program that will allow a user to manage
the inventory of a small store that sells various products of any

Problem: Write a C++program that will allow a user to manage the inventory of a small store that sells various products of any type. The inventory for the store will contain the following information for each product: product name (.e. "AppleiPhone3GS, it will NOT contain spaces in it) sku quantity (how many of this product in stock) price stock keeping unit code, an integer) (in dollars and cents) Note: Your program should be able to store up to 100 different products. You may assume that the skus will be unique (you do not need to check for this). The program should first read the inventory from a text file named "inventory.dat". This file will contain data for each product in the inventory in this order: product name, sku, quantity, price. It will contain up to 100 products. See the sample file (inventory.dat) on the Tracs website. Then, it should offer the user a menu with the folowing options: 1. Display the inventory sorted by sku. 2. Lookup a product by sku 3. Lookup a product by name. 4. Quit The program should perform the selected operation and then re-display the menu. Do not change the menu numbers associated with the operations. For the Display operation, display the information for each product on a separate line. The values should line up in columns (use setw). Headers for the table are optional. For the Lookup operations, label the output values (ie. Name: AppleiPhone3GS, etc.). If the product is not found, display an appropriate message. Additional Requirements: This program must be done in a Linux or Unix environment, using a command line compiler like g++. Do not use codeblocks, eclipse, or Xcode to compile. Your program must compile and run, otherwise you will receive a score of 0. The program must be modular (use top-down design), with significant work done by functions. Each function should perform a single, well-defined task. Use a partially filled array of structures to store the inventory: Use a counter variable to count the number of products that are read in from the file, and use this value as the size of the array for the search and sort functions

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!