Programming Assignment - Write a program that solves puzzle

Assignment Help JAVA Programming
Reference no: EM132401487

Programming Assignment -

Goals -

Using arrays to save a(n) (un)known number of values.

Using more classes and recognising when to use extra classes.

Recognising the right class for the right method, variable or constant.

Pirate -

During his completely miserable life, pirate Abraham Blaufelt has been in search of the lost treasure of Atlantis. On a very fortunate day in the year of the Lord 1642 he enters an abandoned cathedral of a long gone sect in the ancient forests of Poland. Inside he finds a mysterious ancient parchment. The parchment reads:

Traveler, if you want to reach thine goal, trace the path through seas by making the broken, whole.

5, 4  4,5  8,7

Add behind 6,3  3,2  9,6  4,3

Add in front 7,6

Add behind 9,8

Add in front 5,5  7,8  6,5  6,4

Abraham Blaufelt immediately knew what he was dealing with. A puzzle of which the result is a safe route to the treasure. This route was essential, the sea was crawling with monsters in those days. Since this most fortunate day, almost four hundred years ago, the european tectonic plate has shifted significantly. As a result all coordinates have to be shifted by (1, 0).

Write a program that solves this puzzle. This has to be done in the following way: Start with the coordinates on the first row, add the coordinates of the second row at the back, then add the coordinates of the third row in front etc. Make a new Coordinate and CoordinateRow class for this assignment. The latter class has methods to add a CoordinateRow in front or at the back and methods to add a single Coordinate at the front or at the back.

The coordinates of the puzzle are in a file on Blackboard. Every CoordinateRow is separated from another by an '='. Every coordinate in a row is separated by a space. The x and y values of a coordinate are separated by a comma. After all data has been read, the program will print the treasure route on the standard output.

Attachment:- Assignment Files.rar

Reference no: EM132401487

Questions Cloud

What are the basic steps for the application : What are the basic steps for the application of your chosen concept in resource allocation? Provide an example of how this concept can be applied in a specific.
Can a normal distribution be used for the p distribution : (a) Can a normal distribution be used for the p^ distribution? Explain. (b) State the hypotheses.
What conditions would make you choose to create a sum : How is an evaluation plan different than a quality management or testing plan? What conditions would make you choose to create a SUM?
What is the component cost of capital for the company : What is the component cost of capital for the company? Calculate using the CAPM and What is the standard deviation for each investment
Programming Assignment - Write a program that solves puzzle : Programming Assignment - Write a program that solves this puzzle. This has to be done in the following way: Start with the coordinates on the first row
What is the level of significance : What is the level of significance? What is the value of the sample test statistic? Round your answer to three decimal places.
Corresponding p-value for a two-tailed test : (a) Find an interval containing the corresponding P-value for a two-tailed test.
Design a bulk metal forming process : Design a bulk metal forming process and Design the tools required for all these operations - Write a report, which contains the design methodology, CAD drawings
Determine the probability that a six-pack of soda : Determine the probability that a six-pack of soda cans would contain a sample mean volume of less than 12 fluid ounces.

Reviews

len2401487

11/15/2019 11:16:29 PM

I have a programming assignment due tomorrow morning for my course programming and I get an error message whenever I execute the program and I need help with that. The following is my error message and my documents included. I also attached my assignment details for tomorrow I need to finish my Pirate assignment.

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