Creates a new set of animals

Assignment Help JAVA Programming
Reference no: EM131136875

OOP Project Description

Requirements:

You are to design and build a zoo organizer. The zoo organizer should keep track of a set of animals. The zoo organizer should be able to keep track of different sets of animals. The organizer only needs one set of animals open at a time. It should have the capabilities to save the current set of animals to a file and also open a set from a file.

There are 3 types of animals in the zoo. There are mammals, reptiles and birds. All animals have a name, a birthdate, an age and a species. The following chart shows the species that the organizer needs to track. It only needs to track these species.

Type

Species

Mammal

Goat

Lion

Pig

Reptile

Turtle

Iguana

Bird

Eagle

Hawk

Every animal also has a life expectancy, which is how many years we think that animal should live.  The following rules show how to determine the life expectancy.

1. All of the mammal's life expectancy is 15 - age.  So, if a mammal is 5 (15-5 = 10), the life expectancy is 10 years.

2. Iguana's life expectancy is (1 / age) * 10.  So if an iguana is 5 (1/5 * 10) = 2, the life expectancy is 2 years.

3. Turtles seem to live very long.  Their life expectancy is 110 - age.  So if a Turtle is 5, (110 - 5 - 105), the life expectancy is 105 years.

4. We don't know much about the life expectancy of birds.  Always show their life expectancy as 5 years.

When a user creates a new set of animals, they need to be able to add an animal to the set.  They should also be able to update and delete animals in the set.  The organizer should only show one set of animals at a time.

816_UML.png

Reference no: EM131136875

Questions Cloud

Discuss the role of job satisfaction : Discuss the role of job satisfaction and provide examples of strategies a manager can use to motivate an employee. if you were a Human Resource director, how would you coach a new manager to complete performance assessments with their employees? How ..
Planning to implement a company-wide policy with respect : The organization is planning to implement a company-wide policy with respect to bereavement leave that provides the same benefits to all employees, regardless of their province of employment and length of employment. Prepare a memo for the Human ..
A floral supply company with employees : Identify four specific items relating to bereavement leave that will have to be addressed in the policy to ensure compliance with the employment/labour standards in each jurisdiction.
Company expect the cost to increase each year : A small sheet metal company has estimated that its fuel costs for the next 4 years will have a present worth of $70000. The company expects the cost next year to be $15000, after which time the cost will increase according to a uniform gradient. At a..
Creates a new set of animals : When a user creates a new set of animals, they need to be able to add an animal to the set.  They should also be able to update and delete animals in the set.  The organizer should only show one set of animals at a time
Direct materials price and quantity variances : Natural Company produces organic twig brooms. Each broom calls for 1 pound of wood; the wood should cost $0.25 per pound. In July, the division manufactured and sold 500,000 brooms. During the month, it used 495,000 pounds of wood, and the total c..
Perform brief SWOT analysis on the firm : Perform a brief SWOT analysis on the firm, product, or brand of your choosing. Your SWOT should consist of two factors each for Strengths, Weaknesses, Opportunities, and Threats. Provide a brief explanation of why you believe each of your factors is ..
Company with employees in the following jurisdictions : The organization is planning to implement a company-wide policy with respect to bereavement leave that provides the same benefits to all employees, regardless of their province of employment or their length of employment. As Payroll Supervisor, p..
Identify minimum of two additional network devices : What are some of the Security Basics when it comes to workstations and ways to secure Server environments - Identify a minimum of two additional Network Devices and ways to secure the devices?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Relationship between inheritance and subtyping

With this declaration of m in subclass B, any invocation of m on a B object will result in a special error indicating that the method should not be used. (a) What effect does this feature of Smalltalk have on the relationship between inherit..

  Implementing the anagram searching algorithm

The deliverables are one Java file, implementing the anagram searching algorithm, with a main method reading the file to be processed as command line argument

  Create a class called bankaccount

For your new program (#5 above), create a class called BankAccount. The BankAccount class should contain a String to store the customer name and a double to store the account balance. The BankAccount class should have two constructors, as follows:

  Role of inheritance in object-oriented programming

role of inheritance in object-oriented programming

  User session mgr - socket and thread programs

User Session Mgr - Socket and Thread Programs

  Sequential search algorithm

Write a Java program to fill an array of integers with 1000 randomly generated integers and sorts these numbers using selection sort. Then the program asks the user to choose a number and searches for this number in the array using the well-known ..

  Java application that calculates the body mass index

Write a Java application that calculates and displays the body mass index (BMI) for N people

  Define a static max method in the geometricobject class

Modify the GeometricObject class to implement the Comparable interface, and define a static max method in the GeometricObject class for finding the larger of two GeometricObject objects

  What are command line arguments in java

Modify the program such that if there are no command line arguments, when you type:

  Question 1when you use the mvc pattern the controller

question 1when you use the mvc pattern the controller directs the flow of control toa. the browser and the modelb. the

  Calculate the premium and multiply the value of the object

Implement all the four Java classes described with the correct inheritance of abstract classes. Calculate the premium and multiply the value of the object being insured by the corresponding RATE. See the RATE tables above.

  Writing a method to compute such an array from a string

Write a java program in one file to determine if a string is an anagram of another string where a typical run of your program is to be as follows. % java Assg3 restful fluster"restful" is an anagram of "fluster"

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd