subject
Mathematics, 05.07.2019 18:40 sakinahunt

Nine coins are placed in a 3x3 matrix with some face up and some face down. you can represent the state of the coins using a 3x3 matrix with values 0 (heads) and 1 (tails). here are some examples: 0 0 0 1 0 1 1 1 0 0 1 0 0 0 1 1 0 0 0 0 0 1 0 0 0 0 1 each state can also be represented using a binary number. for example, the preceding matrices correspond to the numbers: 000010000 101001100 110100001 there are a total of 512 possibilities, so you can use decimal numbers 0, 1, 2, to represent all the states of the matrix. write a program that prompts the user to enter a number between 0 and 511 and displays the corresponding matrix with the characters h and t.

ansver
Answers: 1

Another question on Mathematics

question
Mathematics, 21.06.2019 12:30
Which statement about the relative areas of triangle abd and triangle xyz is true
Answers: 1
question
Mathematics, 21.06.2019 17:50
Which of these triangle pairs can be mapped to each other using two reflections?
Answers: 1
question
Mathematics, 21.06.2019 19:40
Which is greater, 7 p 5 or 7 c 5? 7p5 7c5
Answers: 1
question
Mathematics, 21.06.2019 21:10
Hey free points ! people i have a few math questions on my profile consider looking at them i have to get done in 30 mins!
Answers: 1
You know the right answer?
Nine coins are placed in a 3x3 matrix with some face up and some face down. you can represent the st...
Questions
question
Mathematics, 05.05.2020 21:17
Questions on the website: 13722359