Suppose you are given a Customer’s list registered as executive members in a storeand you are required to implement an array-based Customerlist. Each Customerin the list hasname, customerID, Contactand membership Category (category can be regular and VIP). Implement different functionsfor entering the data (likeconstructor (for setting to default values),setName, setId, etc.). You also need to implement the following function related to the array.insertCustomer(): It has 2 options•Asking the user for indexand then insert the Customerat that indexAND•Asking the user for the ID of the customerwhere the new Customeris to be added (New Customershould be added at the index of the CustomerwhoseIDis entered)oIf the list is full,it should create a larger list (new size should be entered by the user), copy all the data in it and make insertion as instructedoInsertion will only be made if the IDof the new Customerdoesn’t exist in the listdeleteCustomer()
Comments
Leave a comment