Introduction to f assignment 2

math 215 assignment 3a

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.

Athabasca math 215 assignment 4a

It is critical that your class, interface and public member names match the Javadocs. It is critical that your code compiles. No other markings or symbols should be present on this piece of paper. A test class which passes everything or fails everything will receive a mark of zero. Do the programs work correctly? Continue to abide by the constraint: do not use floating point operations. Repeat this process for the tens digit shifted by 14 ones, and tenths digits.

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.

math 215 assignment 6a

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.

Athabasca math 215 assignment 2

Are the files submitted correctly? Quiz Average As discussed in the Syllabus , I will compute your final quiz grade by dropping your lowest quiz score and taking the average of the rest. Bits control the tenths place Bits control the ones place Bits control the tens place Bits control the hundreds place Bit 28 controls whether degrees Celsius is shown Bit 29 controls whether degrees Fahrenheit is shown Bits 30 and 31 are not used and should always be 0. Does the algorithm make good use of conditionals, repetition, etc. Is the algorithm clear and easy to understand? Your tests must only call functions specified in the Javadocs for classes that you are testing. Do they prompt the user with helpful messages?
Rated 10/10 based on 118 review
Download
CSCI Assignment 2: Bit Ops and Debugging