Question: please write in C++ Write a program that uses a structure to store the following inventory data in a file: The data can be either

please write in C++ Write a program that uses a structure to store the following inventory data in a file: The data can be either read from a text file or the keyboard Item name (string) Quantity on hand(int) Wholesale cost(double) Retail Cost(double) The program should have a menu that allows the user to perform the following tasks: Add new records to the file Display any record in the file User will provide the name of the item or the first n letters of the name of the item Change any record in the file (Note: if this option chosen, then the whole record must be reentered even if the user wants to change only one or more fields) Display all records Prepare a report containing: The total wholesale value of the inventory The total retail value of the inventory The total quantity of all values in the inventory. Input validation: The program should not accept quantities or wholesale or retail costs less than 0.

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!