Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

Do not create a new file. Import the file into eclipse and work on all the tasks in that file and on eclipse.

Okay please submit all the work in the file attached below named FInalExamPractical. Do not create a new file. Import the file into eclipse and work on all the tasks in that file and on eclipse.

The class examples the professor is talking about for Task 4 and Task 5, I have attached an example from class and you guys can look at the code and see how it was done and use to complete the final exam practical. The file is labeled RresnickE15.

Let me know and please complete all the tasks. I will ask for where each task was done in the assignment.

ASSIGNMENT BELOW:

Download the latest version of CuttlefishDinner program stored in FinalExamPractical.zip and import it into Eclipse. You must complete the following tasks based upon our examples in class and your homework.

1) Run the program and play the game. You will see it is complete and works but is very verbose.The Board class defines a print stream (currently System.out) You need to adjust the print stream code so it outputs to a file named "cuttlefish.log". Play the game and make sure to upload this cuttlefish.log file as an individual file to the practical.

2) Copy and paste the console log to a txt file or equivalent you need this information to see if you have improved the performance of the game and you need to upload it to canvas as console.txt

3) Change the ListClass defined in the Board.java file replacing LinkedList with LinkedListStudent.

4) The LinkedList class is very inefficient at keeping track of the list length and if it has data. You will note that it counts each item in the list to calculate the size and to determine if the list is empty. Using the LinkedListStudent class Update the Add, Remove, isEmty, and Size methods to make this more efficient. Hint: My example in class did this correctly so start there.
a) Improve the efficiency of the isEmpty method.
b) Improve the efficiency of the Size method. (Hint it shouldn't need to calculate the length on the fly!)

5) Run the program but don't move the cutttlefish. It should execute and stop with a score of 70 and print the run time. Compare LinkedList, LinkedListStudent, and ArrayList. In the comment of the submission record the three scores and state which was smaller.

6) add a button, and field to adjust the speed of the game (difficulty of the game). The speed of the game is controlled by the "delay" parameter in the Board class.

7) Export the project as a zip file and upload it to the practical assignment in Canvas. In the same submission but as an individual file upload the cuttlefish.log file and record which List class was fastest by providing the run time for each list class.

Attachment:- Practical.rar

Java, Programming

  • Category:- Java
  • Reference No.:- M92396217
  • Price:- $15

Priced at Now at $15, Verified Solution

Have any Question?


Related Questions in Java

Chatbotscreate a small networked chat application that is

Chatbots Create a small, networked chat application that is populated by bots. Introduction On an old server park, filled with applications from the early days of the internet, a few servers still run one of the earliest ...

Project descriptionwrite a java program to traverse a

Project Description: Write a java program to traverse a directory structure (DirWalker.java) of csv files that contain csv files with customer info. A simple sample in provided in with the sample code but you MUST will r ...

In relation to javaa what is constructor the purpose of

(In relation to Java) A. What is constructor? the purpose of default constructor? B. How do you get a copy of the object but not the reference of the object? C. What are static variables and instance variables? D. Compar ...

In ruby the hash class inherits from enumerable suggesting

In Ruby, the Hash class inherits from Enumerable, suggesting to a programmer that Hashes are collections. In Java, however, the Map classes are not part of the JCF (Java Collections Framework). For each language, provide ...

Retail price calculatorwrite a java program that asks the

Retail Price Calculator Write a JAVA program that asks the user to enter an item's wholesale cost and its markup percentage. It should then display the item's retail price. For example: (If an item's wholesale cost is 5. ...

Assessment instructionsin this assessment you will complete

Assessment Instructions In this assessment, you will complete the programming of two Java class methods in a console application that registers students for courses in a term of study. The application is written using th ...

Applied software engineering assignment 1 -learning

Applied Software Engineering Assignment 1 - Learning outcomes - 1. Understand the notion of software engineering and why it is important. 2. Analyse the risk factors associated with phases of the software development lif ...

Simple order processing systemquestion given the classes

Simple Order Processing System Question: Given the classes Ship (with getter and setter), Speedboat, and SpeedboatTest. Answer the following questions: Refine the whole application (all classes) and create Abstract class ...

Can someone please help me with the following java

can someone please help me with the following java question The input is an N by N matrix of nonnegative integers. Each individual row is a decreasing sequence from left to right. Each individual column is a decreasing s ...

Overviewyou are required to use java se 80 and javafx to

Overview You are required to use Java SE 8.0 and JavaFX to develop a Graphical User Interface (GUI) for the FlexiRent rental property management program created in Assignment 1. This assignment is designed to help you: 1 ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As