subject

You're playing battleships, but you keep forgetting which squares in the grid you've already selected! Write a program to help you keep track of which squares you've hit. Your program should read in coordinates, one per line. If you haven't tried that square before, your program should print out Hit . If you have tried those coordinates already, you should print out You've chosen that square already. Your program should run until a blank line is entered, and should work like this:

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:30
The following is an excerpt from a slide presentation. today we will inverse operations solving equations using inverse operations solving inequalities using inverse operations from which part of the presentation does the slide most likely come from? a. introduction b. outline c. body d. conclusion
Answers: 1
question
Computers and Technology, 22.06.2019 20:00
What is the term for water wave that is created by an underwater earthquake
Answers: 1
question
Computers and Technology, 23.06.2019 21:30
Enzo’s balance sheet for the month of july is shown. enzo’s balance sheet (july 2013) assets liabilities cash $600 credit card $4,000 investments $500 student loan $2,500 house $120,000 mortgage $80,000 car $6,000 car loan $2,000 total $127,100 total $88,500 which expression finds enzo’s net worth?
Answers: 1
question
Computers and Technology, 24.06.2019 12:50
What percentage of teens plays video games? a.97% b.100% c.74% d.50%
Answers: 1
You know the right answer?
You're playing battleships, but you keep forgetting which squares in the grid you've already selecte...
Questions
question
Mathematics, 27.07.2019 12:20
question
Mathematics, 27.07.2019 12:20
Questions on the website: 13722363