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 06:00
Write a function that draws a pool ball. this function should take as parameters, the color, the number that should go on the pool ball, and the location of the center of the pool ball. the radius of the pool balls should be pool_ball_radius, and the font of the number should be pool_ball_font. the text of the pool ball font should be white. drawpoolball(color.orange, 5, 100, 100); drawpoolball(color.green, 6, 50, 200); drawpoolball(color.red, 3, 150, 350); drawpoolball(color.blue, 2, 250, 140); to center the numbers on the pool ball, you should use the getwidth() and getheight() methods. you are allowed to call these methods on your text object, such as txt.
Answers: 3
question
Computers and Technology, 22.06.2019 07:30
Events and conditions that happen within an organization that are somewhat easier to deal with when responding to change are called
Answers: 1
question
Computers and Technology, 23.06.2019 18:00
Freya realizes she does not have enough in her bank account to use the debit card. she decides to use a credit card instead. which questions should freya answer before using a credit card? check all that apply. can i pay at least the minimum payment each month? can i make payments on time and avoid late fees? will i have to take out a loan? how much in finance charges can i afford to pay? should i talk to a consumer credit counseling service?
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
Of the following pieces of information in a document, for which would you most likely insert a mail merge field?
Answers: 3
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, 31.08.2021 05:20
question
Chemistry, 31.08.2021 05:20
question
Chemistry, 31.08.2021 05:20
question
Mathematics, 31.08.2021 05:20
question
Mathematics, 31.08.2021 05:20
question
Mathematics, 31.08.2021 05:20
Questions on the website: 13722362