How many years we think that animal should live

Assignment Help JAVA Programming
Reference no: EM131141715

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 birth date, 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.

Attachment:- Assignment.rar

Reference no: EM131141715

Questions Cloud

Explain what communication channels are most effective : Lastly, explain what communication channels are most effective when dealing with individual employees, a group, and the larger organization. Consider cross-communication platforms, too. How do they complement each other
Is linearity necessary to have an automatic operation : Are these two relationships linear? Is linearity necessary to have an automatic operation? Switch the system back to auto and hold your hand over the tube so as to cause a restriction. What happens when controlling the ball to a set height?
Two sentence using the commonly misused and confused words : Write two sentences using the commonly "Misused and Confused Words and Phrases" - Write a sentence using a commonly misspelled word.
What is cultural relativism : Explain Mill's distinction between the qualities of pleasure. - What is cultural relativism?- According to Aristotle, what is a virtue?
How many years we think that animal should live : 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
Is the trend favorable or unfavorable to the company : What is the trend of each ratio during the three year timeframe? Is the trend favorable or unfavorable to the company and give the rationale? How does the company's ratios compare to those of the other same industry company chosen?
Create an applet that uses two integer : Create an Applet that uses two integer (int) variables x and y to place the picture of four circles on the screen. Alternate the colors by setting the g.setColor method. Also, use the g.drawString to place your name above the circles
What happen if physician ignore patients refusal : What might happen if a physician ignores a patient's refusal to grant consent? - A woman opens her mouth for the physician to examine her throat. Is this a form of consent?
Calculate the square footage of a house : You have begun work at a realty office. You have been asked to develop a program that helps realtors calculate the square footage of a house based on measurements of the rooms of the house

Reviews

Write a Review

 

JAVA Programming Questions & Answers

  What command is used to create a java archive

What command is used to create a Java archive? Describe using an example.

  Write a program that lets the user click on the panel

Write a program that lets the user click on the panel to dynamically create points. Initially, the panel is empty. When a panel has two or more points, highlight the pair of closest points. Whenever a new point is created, a new pair of closest po..

  Design a small wbis using elements from the disciplines

Design a small WBIS using elements from the disciplines of web design, database design, software engineering and object modelling;be able to develop a small WBIS using HTML forms, Java Servlets and cookies.

  Prepare a java program to create a bank account

Write a client java program that will use a pre-implemented class BankAccount.java. BankAccount class provides template to create BankAccount objects that represent real world bank accounts

  Design 3 shoppingbay is an online auction service that

3. shoppingbay is an online auction service that requires several reports. design a flowchart or psuedocode this is

  Afterwards a way for the user to input

And so on and so forth then afterwards a way for the user to input that they finished a particular task on the list. After the user has input that they have finished a particular task the program should be print "Good Job!" or "Keep it up!"

  Creat a class that saves the grades

Creat a class that saves the grades of students in an array, and contains a few methods that do some statistics on these grades. Your task is to create this class, and create client testing class that does all the necessary tests of its methods.

  A java program that reads the records

A java program that reads the records from the golf.dat file and displays them. It also displays the name of the player with the best (lowest) golf score.

  Create a world class that contains a 2d array

You have to create a world class that contains a 2d array then create an abstract class called organism that contains move() method the organism should move randomly one step at the time.

  Reading in strings from a text file into an array

If I am reading in strings from a text file into an array, where do I place this file at so that CodeBlocks will find it?

  Which correctly creates an array of five empty strings

Which correctly creates an array of five empty Strings? Which of the following statements is preferred to create a string "Welcome to Java"?

  Write a class to represent a credit card.

write a class to represent a credit card.

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