See the bottom for how to submit your work.
Determining the state of H2ODebug your code until it runs correctly. Circle below how you wrote your code.
00101010. If we interpret that byte as a
char, what character does it represent?
|
address value (annotate variables p and q) 0x000000000000 ... 0x7ffff79351c4 0x7ffff79351c8 0x7ffff79351cc 0x7ffff79351d0 0x7ffff79351d4 0x7ffff79351d8 0x7ffff79351dc ... 0xffffffffffff |
| expression | evaluated as | due to |
| x + y * z | (x + y) * z OR x + (y * z) | precedence OR associativity |
| x > y + z | (x > y) + z OR x > (y + z) | precedence OR associativity |
| cin >> x >> y | (cin >> x) >> y OR cin >> (x >> y) | precedence OR associativity |
| x = y = 1 | (x = y) = 1 OR x = (y = 1) | precedence OR associativity |
| x = y == z | (x = y) == z OR x = (y==z) | precedence OR associativity |
Input a 3-letter word in uppercase letters: CAT Output: catHint: You don't need to use an if-statement for this problem. Look at the ASCII table and think about how to go from the ASCII value of a uppercase letter to the ASCII value of the same letter in lowercase.
~/bin/submit -c=IC210 -p=hw04 hw.cpp