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

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!