Limited Offer Get 25% off — use code BESTW25
No AI No Plagiarism On-Time Delivery Free Revisions
Claim Now
Prices start at $5 per page · plagiarism-free papers · free revisions for 14 days 24/7 support: support@bestwriters.com
Uncategorized

Create a database which will hold up to 5 animal

  • Posted
  • Authoradmin
  • Length238 words
  • Reading time2 min
Write My Assignment FREE

Create a database which will hold up to 5 animal family objects. Each family may have up to 3
animals in it – see the sample data in the Appendix at the end of this document. To implement this
you should use arrays, one array of Family objects each with its own array of Animals.
That is, create an array of up to 5 Family objects. Each Family object can have an array of up to 3
Animal objects as one of its attributes.
The program should have the functionalities listed below.
Question 1. A user may add a Family (15 marks).
The user will specify the Family name, continent and diet. There should be an error message if the
Family name already exists, or if there are already 5 Family objects.
Question 2. A user may add an Animal object to one of the Family objects (15 marks).
The user will specify the Family name (the object to which this Animal is being added), Animal
name, continent and habitat. There should be an error message if the Animal already exists, or if the
Family does not exist, or the Family already has 3 Animal objects.
Question 3. A user may delete a Family (15 marks).
The user will specify the Family name. There should be an error message if the Family does not
exist. This will also cause any Animal objects in that Family to be deleted

The post Create a database which will hold up to 5 animal appeared first on My Assignment Online.

Plagiarism Free Assignment Help

Expert Help With This Assignment — On Your Terms

✓ Native UK, USA & Australia writers ✓ Deadline from 3 hours ✓ 100% Plagiarism-Free — Turnitin included ✓ Unlimited free revisions ✓ Free to submit — compare quotes

admin

Academic writer and editor at BestWriters.

Get your paper off your plate tonight

Post your instructions for free. Prices start at $5 per page.

Place an order