Each digit follows the same pattern of bit to bar correspondence as the right-most bits. For this reason, it is important that you name your files correctly. It should be relatively short by making use of the previous functions.
Notice the following. You may also assume that I know how to copy the list of words and the entire table of characters onto paper so that I can mark on it in future instructions. The bits corresponding to the hundreds place of the temperature is shifted to the left by 21 bits so shift the mask to the left and combine it with the state variable.
Note that both could be shown at the same time or neither shown but this should not be done for actual temperatures. Figure 2: Full examples of how the 30 bits of the thermometer display state control which parts of the temperature are shown.
Start with an integer variable of 0 all 0 bits. No other markings or symbols should be present on this piece of paper.
You do not need to modify or understand code in either file to complete the assignment though it will certainly expand you C skills to spend some time examining them.
This is a bit trickier since the user needs to be at least 18 to vote and presidential elections only happen on years that are divisible by four. A test class which passes everything or fails everything will receive a mark of zero.
The diagram below shows several full temperatures along with the bits representing the digits.