COSC1519 Introduction To Programming Assignment

Assignment Help JAVA Programming
Reference no: EM132377285

COSC1519 Introduction To Programming Assignment - Development of a Partially Complete Java Application, RMIT University, Australia

1. Background and basics:

You are employed as a programmer by a game developer and, being a fan of programming, you are excited to give your new job your 100% or more. You learn that your first task on the job is to revive a game project named 'AVIANIGHTMARE' that has been abandoned by your predecessor who mysteriously disappeared without a trace.

The original programmer had demonstrated a nearly complete version of the game (27/8/2019 lecture demo) but the company only has an older set of the source files.

Although this is an assignment, you must consider yourself as a professional programmer and Daryl and Gayan as your employers (i.e. the company). It is expected that you will need to independently investigate things such as what types of data some of the provided methods might need, etc. in the Java API Specification and other resources. As it is the case with real-world projects, not everything will be clear at various stages and you are expected to seek clarifications from Daryl or Gayan via the relevant Canvas→Discussion forums. Consider going to the consultation, remedial sessions and mentoring (see Canvas→Announcements for details).

2. Constraints, guidelines and requirements:

2.1) Assignment context specific constraints that you must follow:

A) Any changes that you make and all code that you write must be restricted to the Enemy.java and Player.java files.

B) You must not create new constructor methods. You must not change the definitions of any existing methods even in Enemy.java or Player.java (you can alter the bodies of methods in Enemy.java and Player.java, if you so wish).

C) You are also awarded marks for placing only the relevant code in the relevant methods (use method names of the provided methods as a guidance).

D) When a data structure is necessary, use only arrays (e.g. no array lists).

E) Every method in Enemy.java and Player.java must have only one return statement and this statement must be the very last statement in the method block.

2.2) Object oriented design constraints that must be demonstrated:

A) All member variables must be explicitly private and non-static. There should be no = (equals) signs where member variables are declared. All member variables must be explicitly initialised in the constructor.

B) Whenever a method refers to a member variable, it must use this. (i.e. "this dot", e.g. this.x).

C) Aside from the main method in the GameManager, there should be no other main methods.

D) You do not need to create methods in addition to those that are provided but if doing so, those methods must be private and not static.

2.3) General good coding practices that must be demonstrated:

A) Your code must be formatted consistently (e.g. use Eclipse→Source menu→Format). Comments should not be formatted in to a vertical strip; add comments on a new line instead.

B) Identifier names must follow common conventions demonstrated in the lectures and in the Java API specification.

C) Add comments and explain in plain-English the purposes of segments of code that you have added. You must not comment every line.

D) If you have any unresolved bugs, you must document these in the approximate locations within which they originate in your code. If you do not have bugs, you must explicitly say that there are none. Note: Being able to recognise bugs is a good thing.

E) Do not use break, continue, static, System.exit... and similar statements.

2.4) Enemy.java requirements: Write code inside suitable existing methods to make the Enemy autonomously follow the Player, as explained in the 27/8/2019 lecture. In the originally provided code, all Enemy objects are created at the same coordinates; you must change this so that each Enemy object is created at the coordinates provided by GameManager at the time the Enemy object is created. The Enemy must access the Player's coordinates via the provided GameManager reference and then follow the Player.

Hint: Start by modifying the Enemy's x and y coordinates so that it moves in some direction then change it to make it follow the Player.

Near every segment of code that you have added, discuss the pros and cons of an alternative implementation (assume alternative implementation must also meet all functional requirements). E.g. what are the pros and cons of using a different set of object member variables. E.g. what are the pros and cons of making the Enemy follow the Player in a different way.

2.5) Player.java requirements: Write code inside suitable existing methods to make the Player autonomously avoid the Enemy objects, as explained in the 27/8/2019 lecture. In the originally provided code, the Player object is created at a fixed coordinate; you must change this so that the Player object is created at the coordinates provided by GameManager at the time the Player object is created. The Player must access the Enemy coordinates via the provided GameManager reference and then avoid all Enemy objects. Finally, make the necessary changes to display the player-dead.png as its image when the Player dies.

Hint: Start by making the Player avoid just 1 Enemy object and then make it work for an arbitrary number of Enemy objects. Near every segment of code that you have added, discuss the pros and cons of an alternative implementation (assume alternative implementation must also meet all functional requirements). E.g. what are the pros and cons of using a different set of object member variables. E.g. what are the pros and cons of making the Player avoid the Enemy objects in a different way.

When in doubt, you are required to ask either Daryl or Gayan via the relevant Canvas→Discussions forums. Clarifications will not be made via email as it is not equitable.

Note - Need to write the program via Eclipse.

Attachment:- Programming Assignment File.rar

Reference no: EM132377285

Questions Cloud

HS2031 Human Computer Interaction Assignment Problem : HS2031 -Human Computer Interaction Assignment Help and Solutions, Holmes Institute- Australia-Perform a task analysis to identify the tasks the potential users.
Describe an organizational behavior theory contained : Identify and describe an organizational behavior theory contained in the article. Include what other fields contributed to the development of this theory.
How the media shapes health communication messages : In 2-3 well-developed paragraphs, discuss how the media shapes health communication messages. Include in your discussion the issue of media bias.
Research global women business leaders : Research global women business leaders. what you have researched as being her most distinguishable leadership traits, characteristics or practices.
COSC1519 Introduction To Programming Assignment : COSC1519 Introduction To Programming Assignment Help and Solution - RMIT University, Australia - Development of a Partially Complete Java Application
What alternatives you recommend to close juvenile prisons : Do you think we should close juvenile prisons? If so, what alternatives would you recommend? Do you agree with the U.S. Supreme Court decision that juveniles.
How implementing diversity and commonality mitigate threats : Attacks on our national infrastructure are already happening. And the expectation is that they will continue to increase at an accelerated rate. For this week.
What do you view as differences between tourist and travel : The promise of pencil. Adam applied to Semester at Sea program in order to get out of comfort zone. What do you view as differences between tourist and travel?
Evaluate the proposed bonus system : What features of this compensation plan would seem to be effective in motivating the sales force to accomplish company goals of higher profits.

Reviews

len2377285

9/26/2019 11:44:38 PM

Need to write the program via Eclipse. The penalties for breaching academic integrity are severe - they include charges of academic misconduct, cancellation of results. You are awarded marks for concisely and sensibly demonstrating concepts covered in lectures for meeting all requirement and constraints in section 2 of this document. Deliveries and submissions: Your “employer” requires you to perform two deliveries of your work. There are three important dates/actions to remember.

len2377285

9/26/2019 11:44:32 PM

Delivery 1 (3.75 marks): Submit Enemy.java and Player.java at the same time (together, in one go) via Canvas-Assignments-Assignment 2 Code then demo during your allocated practical in week 10, using your own computers. For this delivery, you will need to demonstrate 2.1, 2.2, 2.3 and 2.4. There is no need for 2.5 but the Player will need to move when controlled using arrow keys (this functionality is already provide) and the Enemy must follow the moving Player. Every student is given 3 minutes for the demo and you need to be able to answer the questions asked during the demo within this time to complete the demo. To be fair to all students, your instructor may stop your demonstration if you take too long. Note: Your GameManager.java, Stage.java will be replaced with the original files for marking.

len2377285

9/26/2019 11:44:26 PM

Delivery 2 (2.5+3.75 marks): Submit Enemy.java and Player.java at the same time (together, in one go) via Canvas-Assignments-Assignment 2 Code at the end of week 11 and then demo that work during your allocated practical in week 12, using your own computers. For this delivery, you will need to demonstrate 2.1, 2.2, 2.3, 2.4 and 2.5. Every student is given 3 minutes for the demo and you need to be able to answer the questions asked during the demo within this time to complete the demo. To be fair to all students, your instructor may stop your demonstration if you take too long.

len2377285

9/26/2019 11:44:18 PM

Note: Your GameManager.java, Stage.java will be replaced with the original files for marking. A submission with a missing demonstration will not attract marks. It is fine if files are automatically renamed by Canvas when resubmitted. If your code has red dots (compilation errors), you will receive 0 for that delivery. If your code generates errors at run-time, a 50% penalty will be applied for that delivery. A late submissions will incur a 10% late penalty for each working day late; submissions will not be accepted after 5 working days from the deadline.

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

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

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