Question: 2. Create C program to create and use a file to process an inventory of components. The program should store a components description, quantity and
2. Create C program to create and use a file to process an inventory of components. The program should store a components description, quantity and price in a text file.
The program should provide the following menu options to the user:
1. Create a file
2. Add a component to the list
3. Display the current list of components
4. Exit program
If any of the first three options is selected and executed, the program control should go back to the main menu. Option 1 through 3 should open and process the file for writing or reading based on the option selected. The first option (Create a file) should enable the user to name the file.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
