Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This assignment is an exercise on parallel arrays, solve only using one dimensional arrays. An auto parts store, each part has a unique part number,

image text in transcribed

This assignment is an exercise on parallel arrays, solve only using one dimensional arrays. An auto parts store, each part has a unique part number, available in stock, order limit, and retail price. Write 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) 2123191201200510001211552523725.003420.50185.00 3320446101272.00 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. Notes: - Submit your assignment through Ritaj web page by replying to message 230-Ass4

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

Step: 3

blur-text-image

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

Beginning Microsoft SQL Server 2012 Programming

Authors: Paul Atkinson, Robert Vieira

1st Edition

1118102282, 9781118102282

More Books

Students also viewed these Databases questions

Question

Proficiency with Microsoft Word, Excel, PowerPoint

Answered: 1 week ago

Question

Experience with SharePoint and/or Microsoft Project desirable

Answered: 1 week ago