ICTPRG527 Apply Intermediate Object-Oriented Language Skills

Assignment Help Programming Languages
Reference no: EM132407539

ICTPRG527 Apply Intermediate Object-Oriented Language Skills, Academies Australasia Polytechnic, Australia

PROGRAM REQUIREMENTS & BRIEF

This assessment requires you to program a game – ‘Rabbit Plague’.

The aim of the game is to “kill” rabbits by clicking on them. The game must keep score of the number rabbits are killed.

The game must end when all the rabbits are killed. (Alternatively, having the game end if there are no more male rabbits or no more female rabbits is encouraged). The game must also end once there are 100 or more rabbits.

When the game ends a message must be displayed to the user and the high score must be updated if the user beat the old high score.

The game must be written in Java and must use graphical user input – swing is recommended.

The game must be developed and run in Eclipse.

You are required to submit your Java source code to the LMS.

HINTS & TIPS

1. Use main to initialise the GUI.

2. Create a “Game” class which extends JFrame. Game holds the game and the main method.

3. Create a “Field” class which extends JPanel.

4. In the Game object, instantiate a Field object add it to the game JFrame.

5. In the Game object, instantiate score and population JPanels and add them to the Game object.

6. Use the JTextArea class to create objects to show the score, high score, number of male rabbits and number of female rabbits. Add these JTextArea objects to the score and population JPanels as appropriate.

7. Create a Rabbit class which extends JButton. Square Rabbits are OK.

8. Add a few “rabbits” to the “Field”, making sure that they appear in random locations.

9. Rabbits must move around the “Field”. Rabbits are brought to life using Threads.

10. Rabbits must “breed”.

11. Use various control structures to ensure that new rabbits are added to the “Field” at random times.

12. When the player clicks on rabbit, increase the score, decrease the rabbit count and delete the rabbit. Implement ActionListener to detect when the rabbit is clicked on.

13. The game ends after all rabbits are dead (or other reasonable and suitable programmed condition) or if the total number of rabbits on the screen exceeds 100 rabbits..

14. Make sure the score remains on the screen when the game ends.

15. Let the player know the game is over. You might want to ask the player if they want to play again.

16. Use the JOptionPane class to interact with the user.

17. Google is your best friend.

Reference no: EM132407539

Questions Cloud

Discuss the communication process between the customer : Discuss the communication process between the customer, contractor, buyer and contract manager.
You take to engage stakeholders in that project : Discussed the importance of stakeholder engagement in policy making. what measures would you take to engage stakeholders in that project?
Explore range of resources available within the disciplines : Successful professionals regularly review the literature in their industries to explore the intellectual developments and range of resources available within.
Experience differing risk events and differing frequency : What is the impact of project classification on project risk indicator? The results of various studies provide evidence that different project classifications
ICTPRG527 Apply Intermediate Object-Oriented Language Skills : ICTPRG527 Apply Intermediate Object-Oriented Language Skills Assignment Help, Academies Australasia Polytechnic, Australia, Create a Field class which extends.
What are positive and negative consequences : With regard to workforce reduction, what are positive and negative consequences of a reduction in workforce; furthermore, what are credible alternatives
Article related to threat to confidentiality and integrity : Analyzing a subject you find in this article related to a threat to confidentiality, integrity, or availability of data. Use an example from the news.
Categories of the matrix structure : "Decision making in a matrix may be slower as there are more managers to consult with for approvals." Does it not depend on the categories
Impacted individual and societal thinking about politics : How the media have impacted individual and societal thinking about politics and politicians since 1992?

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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