Given the following UML model of a vector of customers, write the code for the addCustomer method, assuming that the internal array, arr, is always
sized exactly to the number of customers saved.
customerVec
-arr:customer* = NULL
-size:int = 0
-paymentCollected:double = 0.0
+{constructor/destructor}
+getSize():int
+getPaymentCollected():double
+addCustomer(cust:customer):int
+getCustomerAt(loc:int, out cust:customer&):bool
+setCustomerStatus(loc:int, status:bool):void
+purge():int
+print(out:ostream&):ostream&