Question: Please follow directions for program. No extra add-ons pease. Write a C++ program to prepare and INVENTORY REPORT the following record description. Record description. Item
Please follow directions for program. No extra add-ons pease.
Write a C++ program to prepare and INVENTORY REPORT the following record description.
Record description.
Item number {integer} // item number is the record key
Item description {character string} // 20 chars
Cases on hand {integer}
Case capacity {integer}
Item price {float]
Record date created yyyy mm dd
Last date modified yyyy mm dd
Min_stock_amt {integer}
Read in an unknown number of records from a file {prepare your tables to handle a maximum of 25 records}. However the actual number of records on the file is not known in advance. Write a C++ program that reads and stores the records in an array. Sort the records by item number in ascending order. Then print the inventory report in the format presented below. Write the report to an output file instead of to the screen. Use functions exclusively and document your program and verify the correctness of your output. Use the same sample data files provided for project 8.
Inventory Report
Items Printed In Ascending Order
Item Item Cases Stock* Date Date Min
Number Description In stock Value Created Modified Inv. Amount
343 tonners 30 999.99 Feb. 3, 1989 May 5, 2001 30
453 cartridges 10 999.99 Dec. 9, 1015 Jan. 9, 2001 10
: : : : : : :
: : : : : : :
Total Value of Inventory ==========> $9999.99
Total Records processed => 999
END OF REPORT
*stock value = cases_ on_ hand * case_capacity*item_price
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
