Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Sham Navathe

4th Edition

0321122267, 978-0321122261

More Books

Students also viewed these Databases questions

Question

6. Have you used solid reasoning in your argument?

Answered: 1 week ago