Question: Q3. [File and Structure] 15 pt Write a complete C program using structure named struct fruit, for a Grocery Store database management system that will
![Q3. [File and Structure] 15 pt Write a complete C program](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f466ebd5c3f_16366f466eb57143.jpg)
Q3. [File and Structure] 15 pt 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". 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 The program should be able to open a new file or add data to an existing file. 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
