This Program should be done using C language   Implement the Customer component following the requirements below using C Language... Requirements- Represent the Customers in your code using a 3D character array  The maximum number of customers that can be saved is 128. Create a function list_customer which lists all customer data resembling the example run below. Create a function add_customer which prompts the user to input new customer information. Your code should check to make sure the customer does not already exist before adding it to the 3D array. Also check that the customer can be added based on the maximum number of customers in the system. Create a function get_customer which searches the customer data given an customer ID. If the customer exists, return the index within the data that the customer was found. Create a function find_customer which accepts a string containing the name of an customer to search for. It should return the index of the customer in the database. Each of the above functions should accept the 3D character array of customer information as one of their parameters. Global variables should not be used! Data Format- ID, Name, Phone Number

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter8: I/o Streams And Data Files
Section: Chapter Questions
Problem 8PP: (Data processing) A bank’s customer records are to be stored in a file and read into a set of arrays...
icon
Related questions
Question

This Program should be done using C language

 

Implement the Customer component following the requirements below using C Language...

Requirements-

Represent the Customers in your code using a 3D character array 

The maximum number of customers that can be saved is 128.

Create a function list_customer which lists all customer data resembling the example run below.

Create a function add_customer which prompts the user to input new customer information. Your code should check to make sure the customer does not already exist before adding it to the 3D array. Also check that the customer can be added based on the maximum number of customers in the system.

Create a function get_customer which searches the customer data given an customer ID. If the customer exists, return the index within the data that the customer was found.

Create a function find_customer which accepts a string containing the name of an customer to search for. It should return the index of the customer in the database.

Each of the above functions should accept the 3D character array of customer information as one of their parameters. Global variables should not be used!

Data Format- ID, Name, Phone Number

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Variables
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr