Author | Message |
---|---|
KA1997
Posts: 31
|
Posted 18:38 May 10, 2017 |
Has anyone figured out how to do this one? |
fengus97
Posts: 18
|
Posted 18:40 May 10, 2017 |
Yea. What are you stuck on? |
KA1997
Posts: 31
|
Posted 19:42 May 10, 2017 |
How to generate all possible 512 configurations and how to assign each decimal (0 - 511) to a certain configuration. |
fengus97
Posts: 18
|
Posted 19:45 May 10, 2017 |
I don't think you have to generate 512 configurations. Just the number you enter. |
jgarc629
Posts: 76
|
Posted 01:46 May 11, 2017 |
I think you just need to have a method to convert the number that the user inputs into a binary number (we've done this before in a previous hw assignment) then return the binary value and use that and put it into a for loop to check if it has 0 or 1 to know where to assign it F or T. |
tkitcha
Posts: 19
|
Posted 20:17 May 11, 2017 |
I just print F and T and use if/else to add a new line. No conversion. |