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
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
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
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images