Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need to complete the following assignment in a week. I will put up a lot of po

ID: 3545492 • Letter: I

Question

I need to complete the following assignment in a week. I will put up a lot of points for grabs. If you post a link saying that I can buy your services please don't bother that is what the points are for. Below are the instructions.


In this assignment you will explore the use of inheritance and dynamic binding in Java.

You will be provided with a partial implementation of a simple game program, written in Java. Your task is to complete the program.

Construction is underway on the pipeline to bring water from Lake Gaston to thirsty Virginia Beach. You are lucky enough to have won the contract to lay the pipe through a small parcel of land. What's more, your brother-in-law the lawyer has wrangled a wonderful contract under which you get paid per unit length of pipe that actually carries water, so it is in your best interest to snake that pipe back and forth as much as you can, so as to get the longest possible working pipeline within your small area of land.

Unfortunately, your pipe supplier delivers whatever shape pipe sections he feels like, and you have to pay for each one delivered, whether you use it or not. Can you lay more water-carrying pipe than you waste in unused pipe sections just lying around on your property?

To play the game, follow the instructions below for running the program. At the top of the gameboard you will see the section of pipe that has been delivered. Click in the grid to place the pipe. If the pipe connects with the water carrying pipe laid so far, the color will change to indicate that the pipe is filling with water, and your score increases.

To familiarize yourself with how the program is supposed to work, you can run the completed version from the provided jar:

Files for this assignment are available here or, if you are logged in on our Linux system, at ~zeil/Assignments/cs330/pipelayer/ .

You must complete the game, making it behave identically to the complete game.

To do this, you should

but you should not otherwise modify or remove the other source code files provided.

If working on Linux, you may also find it to your advantage to modify the makefile by adding to the list of CLASSES. For every file Foo.java that you add to the project, add the name Foo.class to the CLASSES list in the makefile. [Note that all but the last line of the CLASSES list must end with a backslash .]

Hint: to complete this project, it is necessary for you to read and understand these files among the entire set of provided source files: Pipe.java, HorizontalPipe.java, and PipeKit.java.

However, to appreciate how these classes get used in ways that exploit dynamic binding, look at the paint() function in Tile.java or the rescore() function in GameBoard.java.


***************************************************************************************

In an attempt to keep this looking clean I have provided links to a dropbox account that will enable you to download the files that were provided.


https://www.dropbox.com/sh/l5715eosqifdp8b/L8o96-27It


Inside that folder are the needed .java files for this assignment. Thank you anyone who helps me.


https://www.dropbox.com/s/alpfe8tzi9yr9c2/pipelayer.jar


The above link provides access to how a finished solution should behave (the completed game).

Explanation / Answer

Done & Checked.

File uploaded to http://www.filedropper.com/pipelayer and

http://www.fileconvoy.com/dfl.php?id=g082aaccdf846f611999405189d7e82b2cef753560 (this fileconvoy link valid for only 7 days)


Ask if you have any queries.


What's added.

---------------------

VerticalPipe.java


RightUpPipe.java

RightDownPipe.java


LeftUpPipe.java

LeftDown.java


PlusPipe.java



What's Modified

----------------------

PipeKit.java


more specifcally the constructor


public PipeKit()

{

// Initialize the vector

thePipes = new ArrayList<Pipe>();


// Add pipes

thePipes.add (new HorizontalPipe());

thePipes.add (new VerticalPipe() );

thePipes.add (new LeftUpPipe() );

thePipes.add (new LeftDownPipe() );

thePipes.add (new RightUpPipe() );

thePipes.add (new RightDownPipe() );

thePipes.add (new PlusPipe() );

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote