Question: Q4. Write a method named deleteCustomer as it will get the argument customerId and has no return value. (10 p) Assume that there are two
Q4. Write a method named deleteCustomer as it will get the argument customerId and has no return value. (10 p)
Assume that there are two globally defined List Arrays of objects lstCustomer (of class Customer) and lstPet (of class Pet).
- It has to first all pets owned by this customer
- Then it has to delete the

report of a pet in a tabular format as shown below. Petit 1 No Tom Owner Nam. Cem Ye Type: Cat Phone: 0533 845 5534 Opt Date Type Price Pay Date Payment 15/11/2020 Bath 1500.00 15/11/2020 1000.00 20/12/2020 500.00 300.00 26012021 300.00 16/01/2021 Chedep Q4. Write a method named delete Customer as it will get the argument customerld and has no return value. (10p) Assume that there are two globally defined List Arrays of objects IstCustomer (of class Customer) and istPet (of class Pet). it has to first all pets owned by this customer Then it has to delete the I 295 WORDS [18 TURKISH Type here to search ORI Customer Pet Operation Type int custid (PK) String custTitle String custName String custPhone int peud (PK) int custid (FK) String petName Sering petType int petAge int optid (PK) String optName float optPrice Veterinary Clinic Operation Payment int opend (PO int uptid (F) intpelld (FK) Date operate( int paymid (PK) int opeuld (FK) float payamount Date payDate Q1. Write a method named backupPats Distinct as it will get the argument mapArray (MAP Array of objects of class Pet) and will not ret Based on the petType field of every element (Pet) of the mapArray, objects of "Cat's have to be written into the object file C report of a pet in a tabular format as shown below. Petit 1 No Tom Owner Nam. Cem Ye Type: Cat Phone: 0533 845 5534 Opt Date Type Price Pay Date Payment 15/11/2020 Bath 1500.00 15/11/2020 1000.00 20/12/2020 500.00 300.00 26012021 300.00 16/01/2021 Chedep Q4. Write a method named delete Customer as it will get the argument customerld and has no return value. (10p) Assume that there are two globally defined List Arrays of objects IstCustomer (of class Customer) and istPet (of class Pet). it has to first all pets owned by this customer Then it has to delete the I 295 WORDS [18 TURKISH Type here to search ORI Customer Pet Operation Type int custid (PK) String custTitle String custName String custPhone int peud (PK) int custid (FK) String petName Sering petType int petAge int optid (PK) String optName float optPrice Veterinary Clinic Operation Payment int opend (PO int uptid (F) intpelld (FK) Date operate( int paymid (PK) int opeuld (FK) float payamount Date payDate Q1. Write a method named backupPats Distinct as it will get the argument mapArray (MAP Array of objects of class Pet) and will not ret Based on the petType field of every element (Pet) of the mapArray, objects of "Cat's have to be written into the object file C
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
