subject

For your final project, you will be writing your own code to simulate the game battleship. More details will be forthcoming, but for today, you will have to write the function definition of the displayBoards function, which shows your board and your enemy's board, in the following style: 1 2 3 4 5 6 7 8 9 10 A | | | | | | | | | | | B | | | | | | | | | | | C | | | | | | | | | | | D | | | | | | | | | | | E | | | | | | | | | | | F | | | | | | | | | | | G | | | | | | | | | | | H | | | | | | | | | | | I | | | | | | | | | | | J | | | | | | | | | | | The two boards should appear side by side. void displayBoards(char [][10], char [][10]); Note:When you display the board, you are also displaying the contents of the 2D arrays, even though initially they will be empty.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 23:30
Jaina and tomas are being considered as new tenants in an apartment. the landlord looks at their creditworthiness because he wants to be sure his new tenant pays the rent on time and in full. the table below summarizes the information that was on their applications. application information questions jaina tomas how many years have you had your job? 5 2 what is your monthly salary? $1,850 $2,500 how many credit cards do you have? 4 1 how much debt do you have? $13,000 $7,000 how many times were you late with payments on credit cards in the past year? 5 1 who will the landlord decide to be more creditworthy and why? tomas because the ratio of his debt to income is less. jaina because she has had her job longer, which makes her look more stable. jaina because she has more credit cards available to her. tomas because he makes more money per month.
Answers: 2
question
Computers and Technology, 22.06.2019 23:30
For her science class, elaine is creating a presentation on weather in the united states. she wants to make the presentation beautiful and interesting by drawing simple cloud or wave shapes. which is the best way for elaine to draw these shapes?
Answers: 1
question
Computers and Technology, 23.06.2019 03:00
Jason, samantha, ravi, sheila, and ankit are preparing for an upcoming marathon. each day of the week, they run a certain number of miles and write them into a notebook. at the end of the week, they would like to know the number of miles run each day, the total miles for the week, and average miles run each day. write a program to them analyze their data. your program must contain parallel arrays: an array to store the names of the runners and a two-dimensional array of five rows and seven columns to store the number of miles run by each runner each day. furthermore, your program must contain at least the following functions: a function to read and store the runners’ names and the numbers of miles run each day; a function to find the total miles run by each runner and the average number of miles run each day; and a function to output the results. (you may assume that the input data is stored in a file and each line of data is in the following form: runnername milesday1 milesday2 milesday3 milesday4 milesday5 milesday6 milesday7.)
Answers: 3
question
Computers and Technology, 23.06.2019 06:40
What are the three uses of a screw?
Answers: 2
You know the right answer?
For your final project, you will be writing your own code to simulate the game battleship. More deta...
Questions
question
Mathematics, 17.02.2021 03:50
question
Mathematics, 17.02.2021 03:50
question
English, 17.02.2021 03:50
question
Mathematics, 17.02.2021 04:00