Difference between revisions of "CSC103 Final Exam"
(→Problem #2) |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | <onlydft> | ||
'''This final exam is take-home'''. It is open-books, open-notes, and open-Web. ''' It is due''' a week after it is made available, '''at 9:00 a.m.''' on Wed. '''October 15''', 2008. | '''This final exam is take-home'''. It is open-books, open-notes, and open-Web. ''' It is due''' a week after it is made available, '''at 9:00 a.m.''' on Wed. '''October 15''', 2008. | ||
Line 55: | Line 56: | ||
Write a second javascript program (modifying the first one) that computes the volume of '''all''' the grains of rice that would have to be put on all 64 squares of the the chess board, that is the volume of the sum of the grain on the first square, plus the grains on the second square, third, fouth, etc., all the way to the 64th square. | Write a second javascript program (modifying the first one) that computes the volume of '''all''' the grains of rice that would have to be put on all 64 squares of the the chess board, that is the volume of the sum of the grain on the first square, plus the grains on the second square, third, fouth, etc., all the way to the 64th square. | ||
− | Again, your answer should be in | + | Again, your answer should be in cubic miles, and the output of your javascript program should look something like this: |
[[Image:CSC103_Rice_Chess_2.png]] | [[Image:CSC103_Rice_Chess_2.png]] | ||
Line 93: | Line 94: | ||
[[Image:CSC103_MemoryBitOption.png]] | [[Image:CSC103_MemoryBitOption.png]] | ||
+ | |||
+ | </onlydft> |