Question: Vrite a C program to do the following tasks: 1) Create a text file parts.txt, which contains information about a maximum of 100 parts in

Vrite a C program to do the following tasks: 1) Create a text file parts.txt, which contains information about a maximum of 100 parts in the store. 2) Each line in the file contains: part-number (int) available-no (int) order-limit (int) price (float) 3) Declare the following arrays: int part_no[100]; int available[100]; int order_limit [100]; float price [100]; 4) Write a void function_Fill_Arrays which reads and fill the four arrays from the text file, the function receives the four arrays, fill the arrays and return the exact number of parts in the arrays. 5) Write a void function Print_Arrays which receives the four arrays and the exact number of parts and prints on screen a table of the all information about the auto parts. 6) Write a void function Order-Report which receives the first three arrays and exact number of parts and prints on screen a report of the auto parts which needs to be ordered from their suppliers when the available becomes less than the order limit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
