Question: The following program is called Battleship.html. Please review this program carefully and answer the following question: Using the program Battleship.html, what is displayed when you

 The following program is called Battleship.html. Please review this program carefully

The following program is called Battleship.html. Please review this program carefully and answer the following question: Using the program Battleship.html, what is displayed when you run the program? TOOCTYPE html sterlit VAT is loosely based on thesis of Battle over, is this coordinates: veners and ycoordinates are odd numbers. 21 var Coordinate - 6 var ycoordinate 5: D 11 12 13 14 15 function shotFired(x, y) If ((x - Coordinate) M (y - yCoordinate)) { alert("Direct Hit")) ) else alert("You Missed!): 19 21 22 23 24 > shot Fired(12,7) shot fired(5,6); shot Fired(4.9); shotFired(6,5): Direct Hit, Direct Hit Direct Hit Direct Hit You Missed! You Missed! You Missed! You Missed! O You Missed! Direct Hit You Missed! You Missed! You Missed! You Missed! You Missed! Direct Hit None of the above

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To determine what is displayed when the Battleshiphtml program is run ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!