هذا بروجكت برمجه 2 فاهمه السؤال 45% ابي احد يشرحه لي اكثر ويوضح المطلوب والله يجزاه بالجنة ويوفقه ويسعده وين ماكان ...
Mypet store offers service for home pets (like clean, feed and walk) ,borrowing service for animals and sell and buy animals. To take advantage of these services, there is two types of subscriptions premium and basic. In this project, you are required to develop a system for sold and purchased animals and for borrowing service.
There is two kinds of animals Birds and Mammals, for each kind you have to keep information about the animal include its id, which is an automatic number issued by the system, name ,Age ,habitats (Deserts, Grasslands, Forests,..etc), family, can fly or not for bird and covered by hair or fur for Mammals. In addition, you have to keep information about borrowing which includes borrower id and borrowing date.
There is two types of subscriptions premium and basic . for each subscriber a Name, an Address, list of borrowed animals , current number of borrowed animals, type of service ,and a Phone Number are must be stored. Premium subscription allowed to borrow 3 animals and to get 3 services (clean, feed and walk) for their own animals while Basic subscription allowed to borrow 2 animals and to get 2 services (clean and feed ) for their own animals.
This class includes information about the store : title, location and contact details (such as telephone, fax and email), and the contact details should be stored in a reusable class called contact, which holds the data above.
Assuming that Mypet store can contain 100 animals, the system should perform the following:
• Buy animal, sell animal and print list of names for the available animals.
• Add subscriptions , delete subscriptions and prints list of subscribers.
• Borrowing animal.
• Returning animal and make it available for borrowing again.
• Create class: Mypet, Animal and Subscriptions class. Each class should contain default and parameterized constructor, set/get methods for each attribute, and a method to print their details.