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
Q4. Write a method named deleteCustomer as it will get the argument
customerId and has no return value. (10 p) Assume that there are

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!