程序代写代做代考 Sample Solutions for Page Calculations

Sample Solutions for Page Calculations
Out of 2 marks: 1 for part (a), 1 for part (b)
Version 1: 62 bytes, 20,000 pages Solution:
a) floor (4096 bytes/page / 62 bytes/record) = 66 rec/page (deduct 0.5 if they wrote 67 or 66.1)
b) ceiling(20000 rec / 66 rec/page) = 304 pages (deduct 0.5 if they wrote 303)
 It is OK for the students to use the result of (a) in their calculation, but again, check that (b) includes the ceiling.
Version 2: 56 bytes, 22,000 pages Solution:
a) floor (4096 bytes/page / 56 bytes/record) = 73 rec/page (deduct 0.5 if they wrote 74 or 73.1)
b) ceiling(22000 rec / 73 rec/page) = 302 pages (deduct 0.5 if they wrote 301 or 301.4)
 It is OK for the students to use the result of (a) in their calculation, but again, check that (b) includes the ceiling.
Version 3: 66 bytes, 30,000 pages Solution:
a) floor (4096 bytes/page / 66 bytes/record) = 62 rec/page (deduct 0.5 if they wrote 63 or 62.1)
b) ceiling(30000 rec / 62 rec/page) = 484 pages (deduct 0.5 if they wrote 483 or 483.9)
 It is OK for the students to use the result of (a) in their calculation, but again, check that (b) includes the ceiling.