Create the framework for a battleship game

Assignment Help JAVA Programming
Reference no: EM131812808

JAVA

You are to create the framework for a Battleship game. You need to create a 5x5 grid that represents the gameboard. "+" signs represent spaces that haven't been bombed. "O" represents spaces that have been bombed, but nothing was hit. "X" represents spaces where the player has bombed and hit something.

For example:
+++++ ++++O +++X+ +++X+ +++++

The user will enter a grid space by entering two integers that represent the X and the Y coordinates on the grid.

You will create a battleship that class that represents the ship. It will contain the data about it's own hits and will know when all of it's spaces have been hit and it is sunk.

Reference no: EM131812808

Questions Cloud

Management has concluded that shipping expense : Management has concluded that shipping expense is a mixed cost, containing both variable and fixed cost elements.
Calculate the cash equivalent price of the land : Notes Payable. Rubio Company had the following borrowing activity. Rubio has a borrowing rate of 5 percent on its other debt.
Calculate the cash equivalent price : Notes Payable. Rubio Company had the following borrowing activity. Rubio has a borrowing rate of 5 percent on its other debt.
Temporary difference at the end : Novak Corporation has one temporary difference at the end of 2017 that will reverse and cause taxable amounts of $54,300 in 2018, $59,600 in 2019
Create the framework for a battleship game : Create the framework for a Battleship game. You need to create a 5x5 grid that represents the gameboard. "+" signs represent spaces that haven't been bombed
Discuss about the field of healthcare services : This is a strategy that is aimed at making sure that the various decisions that are arrived at continue enhancing the safety of the patients at all times.
Journalize and post adjusting entries : Post to the ledger accounts. Use J1 for the posting reference. Use the following additional accounts: No. 407 Service Revenue, No. 615 Depreciation Expense
Compute the following - cost of goods manufactured : Materials used in product $109,000 Advertising expense $55,000. Compute the following: Cost of goods manufactured
Create a python program for managing media check-out : Create a python program for managing media check-out/check-in with members - Store a list of checked out items for a member and create a method to display it

Reviews

Write a Review

JAVA Programming Questions & Answers

  How many employee objects exist in the heap

Assume you have a class called Employee whose constructor takes two arguments: the employee's name and id number

  Calculate the percent of kcal from each macronutrient

Calculate the percent of kcal from each macronutrient and the percent of kcal by fluids.

  Write a method, insertat that takes four parameters

Write a method, insertAt that takes four parameters

  Parallel implementations-create a text-based program

ITECH5403 Comparative Programming Languages - brief discussion document based on these programming features - The room number must be of a room that exists

  Find and fix the bug that is creating the exception error

Find and fix the bug that is creating the exception error message in the program in our AVL tree implementation. Make sure to explain the bug and how to fix it.

  How would you prevent a method from being overridden

How would you prevent a class from being extended? How would you prevent a method from being overridden? Which classes define legal abstract abstract classes?

  Create a road class

Create a Road class. The class should have functions for setting the width of the road in feet and the length of the road in miles. It should also have functions for obtaining the width of the road the length of the road.

  How you will handle the pros and cons related to javascript

Assume that you were assigned a project at work that includes JavaScript, discuss how you will handle the Pros and Cons related to JavaScript.

  Write a program called product1ton

Write a program called Product1ToN to compute the product of integers 1 to 10 (i.e., 1×2×3×...×10). Try computing the product from 1 to 11, 1 to 12, 1 to 13 and 1 to 14.

  Exceptions-memory management and concurrency

This question asks you to compare properties of exceptions in C++ and Java.

  Display current list contents using the enhanced for loop

Display the current list contents using the enhanced for loop along with appropriate output messages. Create a Listfterator object, iter, to be used in accessing the LinkedList contents.

  Application for an animal-fur trimming service

Create an application for an animal-fur trimming service. Write the code for the application. Prompt the user to indicate how many animals. Display the total fee for one year. Be pleasant in your output as it will be expensive.

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