Create an abstract representation of a generic animal

Assignment Help Programming Languages
Reference no: EM1361882

Implement an international Animal Display GUI using Object Oriented Programming and Java Internationalization. The program should be run via a JFrame; select an Animal from a list of available animals using a dropdown menu. The display must be available in at least two languages, e.g., English and French. When an animal is selected provide a panel to view a picture of that animal and a button to play the sound that the animal makes. Every animal in the hierarchy must be capable of reporting its name, return an image of what the animal looks like and play a sound file representing the noise that the Animal makes; this must be possible in both languages, i.e., the entire interface changes to the language selected. Create an abstract representation of a generic Animal that has the at least two polymorphic methods for making a sound and showing the image of the animal.

Some points to note:

An interface or an abstract class must represent the top of the hierarchy (Animal)

•The AudioClip class can be used to play sounds, this can be defined in each subclass (find a sound on the Internet, e.g., some wav/au file, or you can record your own wav if you like making animal noises)

The ImageIcon class can be used to view images, this can be defined in each subclass

•Each specific animal type must have it's own subclass, e.g., a pig should be represented by class Pig etc.

Reference no: EM1361882

Questions Cloud

Explain when a company is contemplating establishing : Explain When a company is contemplating establishing an international presence, what factors may determine whether to operate as a centralized
Design analgorithm that decides for each node : Design an O(n) algorithm that decides (schedules) for each node at which time slot to start sending data such that the total number of time (slots) is minimized.
Regaining cardiovascular endurance : A 30 year old male was able to last 9 minutes on the Bruce protocol sub-max test. What is his VO2Max? Design a six week workout program for him to help him regain his cardiovascular endurance.
Improving muscular endurance : A 25 year old male can only perform 20 consecutive pushups. Where does his range fall? Design a six week long workout protocol for him to improve his muscular endurance.
Create an abstract representation of a generic animal : Create an abstract representation of a generic Animal that has the at least two polymorphic methods for making a sound and showing the image of the animal.
Explain samsung electronic attempt to make profits : Explain Samsung Electronic attempt to make profits from rising consumer demand after the crash. Analyze how both companies attempted to make a profit after the crash
Making an investment with a return : Your firm's weighted average cost of capital is 11 percent. You believe the company should make a particular investment, but the IRR of this investment is only 9 percent.
Capital management practice analysis - automobile industry : Get a list of best practices for talent acquisition and the top five best human capital management practices within the automobile industry.
Body fat and diet program : A 5'9", 140lb 32 year old female has a body fat percentage of 32% when measured using the BodPod. How accurate is her assessment? Where does she stand? Design a one week diet program to help her reach her goals.

Reviews

Write a Review

Programming Languages Questions & Answers

  Activity for pdus on project management institute-s web site

Several activity categories are given as qualifying for PDUs on project Management Institute's Web site. Recognize  these categories. In which categories would you place Chris's experience?

  Travelling salesman problem

Travelling Salesman Problem on the L1-metric plane.

  Program to use a stack to represent list of workers

Write a program to simulate this process. Use the following guidelines.- Use a stack to represent the list of workers. Use a queue to represent the list of people waiting to work.

  Definition of function quadratic receives double parameters

Write down definition of function named quadratic which receives 3 double parameters a , b , c . If value of a is 0 then function prints the message "no solution for a=0"

  Identify all the pure-strategy nash equilibria of game

Identify all of the pure-strategy Nash Equilibria of this game. Identify at least one mixed-strategy Nash Equilibrium, and show that it is a Nash Equilibrium.

  Develop pseudo-code for program to retrieve bytes

Develop the pseudo-code for a program that will retrieve 2 bytes (NUM1 and NUM2) from memory, determine which is closest to the numeric value 50.

  Implement class to simulate growth of roach population

Implement a class RoachPopulationthat simulates the growth of a roach population. The constructor takes the size of the initial roach population.

  Prolog program to reads employee-s number

Write a prolog program that reads an employee's number from the keyboard, number of hours worked and an hourly rate of pay.

  Compute and display total number of votes received

Display the table with appropriate labels for the rows and columns. Compute and display the total number of votes received by each candidate and the percentage of the total votes cast.

  Program to calculate area of two-dimensional shape

Implement the Shape hierarchy shown in following figure. Each TwoDimensionalShape should contain method getArea to calculate the area of the two-dimensional shape.

  Show how the tree might be type-checked

Attempt to derive proof tree for the judgment Show how the tree might be type-checked

  Benefits of validating the forms

When you are collecting data, you need to consider what data to collect, why you are collecting the data. What are other benefits of validating your forms? How are forms validated? What are some form validation best practices?

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