Question: Hi Im stuck on this problem. I created three functions for this problem. One is working fine,other two Im having trouble. This is a c++

Hi Im stuck on this problem. I created three functions for this problem. One is working fine,other two Im having trouble. This is a c++ problem and we are required to do this with binary files. Here is what I have done so far. Please help! Thanks in advance.
 Hi Im stuck on this problem. I created three functions for
this problem. One is working fine,other two Im having trouble. This is
a c++ problem and we are required to do this with binary
files. Here is what I have done so far. Please help! Thanks
in advance. Part 2: Binary Files 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 1. 2. 3. Change any record in the file (Note: if
this option chosen, then the whole record must be 4. a. User

Part 2: Binary Files 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 1. 2. 3. Change any record in the file (Note: if this option chosen, then the whole record must be 4. a. User will provide the name of the item or the first n letters of the name of the item reentered even if the user wants to change only one or more fields) Display all records Prepare a report containing: 5

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!