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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started