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

  Write program where dealer-s five-card hand is dealt

Write a program where the dealer's five-card hand is dealt "face down" so the player cannot see it. The program should then evaluate the dealer's hand.

  What is java adapter class

What is Java adapter class.

  Design architecture of system to accept natural language

Using the generic model of a language processing system presented here, design the architecture of a system that accepts natural language commands and translates.

  Use switch statement to display roman numeral version

Use a switch statement to display the Roman numeral version of that number. Input Validation: Do not accept a number less than 1 or greater than 10.

  Prepare a presentation on backgrounds and fonts

Can you still read the text? Is it too narrow or thick? Is an icon hidden by the background? You should also include tips for choosing backgrounds and fonts.

  Compute the product xy

Given two integers X and Y compute the product XY (multiplication), the quotient X=Y (integer division), and the modulus X (mod Y) (remainder).

  Design and write a payroll program

Design and write a payroll program that will prompt the user to enter an employee's hourly pay rate and the number of hours worked.

  Explaining object hierarchy in object-oriented programming

Study the concept of inheritance and the object hierarchy in object-oriented programming, and write a paper comparing these concepts with the concept of inheritence.

  Write program that prompts user to specify people and car

Write a C++ program that prompts the user to specify people and cars. Store them in a vector and a vector .

  Write application that inputs a telephone number as string

Write an application that inputs a telephone number as a string in the form (555) 555-5555. The application should String method split to extract the area code as a token.

  Determine branch folding for unconditional branches

Determine the improvement from branch folding for unconditional branches. Assume a 90% hit rate, a base CPI without unconditional branch stalls of 1.

  Develop a simple program for inventory system

You have to develop a simple program for an inventory system. You can choose any type of business (ie: Medical supplies, bakery, grocery shop, florist etc.)

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