Assignment 10, due November 4
Part of
the homework for 22C:60, Fall 2005
|
Always, on every assignment, please write your name legibly as it appears on your University ID and on the class list! All assignments will be due at the start of class on the day indicated, and unless there is what insurance companies call "an act of God" - something outside your control; the only exceptions to this rule will be by advance arrangement.
COMMON A,4 COMMON B,4
An alternative would be to put them together in one larger common block, as:
COMMON AB,8 A = 0 B = 4
a) Write code to carry out the assignment A=B in the context of the first declaration above with two common blocks. You will probably need to use some auxiliary declarations as well as the executable code for the assignment. (1/2 point)
b) As above, write code to carry out the assignment A=B in the context of the second declaration with just one common block. (1/2 point)
a) 0.110 (note, the real problem here is normalization)
b) 1.110 (note, 1.0 is given in the notes)
c) -2.210
d) 10.010
e) 0.0110
+---------+ | +-----+ | | | HAH | | + | +---------+