Print this homework sheet, bring it to the class, and turn it in right before the next lecture starts.
~/$ ./hw B0100 + B1000 = 12 |
~/$ ./hw B0100 + D16 = 20 |
~/$ ./hw D1 + D3 = 4 |
~/$ ./hw D1 = 1 |
number + number = |
number = |
Here, number is binary or decimal. In particular,
As shown in the above sample executions, the program calculates the input equation and prints the output number. Submit
~/bin/submit -c=IC210 -p=hw07B hw.cppTurn in a printout of this cover sheet and the codeprint of hw.cpp