Question: Q3. [File and Structure] 15 pt 15 points Write a complete C program using structure named struct fruit, for a Grocery Store database management system
![Q3. [File and Structure] 15 pt 15 points Write a complete](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f3d9f383f61_07566f3d9f31f3c5.jpg)
Q3. [File and Structure] 15 pt 15 points Write a complete C program using structure named struct fruit, for a Grocery Store database management system that will receive 1) Fruit name, 2) Fruit code (4 digit), 3) Quantity (in kg),4) Store life, and 5) Per unit price from the user (keyboard) and save the received information in a file named "fruit_file.txt". The program should be able to open a new file or add data to an existing file. A sample input/output: Prompt: Enter the fruit name: Apple Enter the fruit code: 4231 Enter the fruit quantity (kg): 5 Enter the store life (days): 4 Enter the price (tk per kg): 135 enrty Output: Data completed
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
