A small observatory keeps a text log of one sensor event every 10 seconds, running continuously for 10 days. Each event consists of a 1,000-byte text payload and a 100-byte header containing its timestamp and device identifier. The text compressor reduces every payload to 30% of its original byte count, but the headers are stored uncompressed. There are no other files, indexes, backups or filesystem overheads.
How many megabytes (MB) of disk space will the archive occupy? Use 1 MB = 1,000,000 bytes, not \(2^{20}\) bytes.
Get hint
Hint 1
The compressor changes 1,000 bytes of text into 300 bytes but leaves the 100-byte header untouched.
Show solution
There are \(24\cdot60\cdot60=86{,}400\) seconds in a day. Ten days contain 864,000 seconds, so a recorder writing one event every 10 seconds stores 86,400 events.
Each payload occupies \(0.30\cdot1{,}000=300\) bytes after compression. The header retains its full 100 bytes, giving \(300+100\)=400 bytes per event. Thus total storage is
\(86{,}400\times400\) = 34,560,000 bytes.
Under the required decimal convention this is 34.56 MB. Applying the compression percentage to the header as well would be incorrect: the 100-byte timestamp/identifier is explicitly excluded. If someone instead reported binary mebibytes, the same bytes would be about 32.96 MiB, but the question requests MB.
Assumptions
All retention days have 24 hours and logging occurs without gaps.
Each text payload shrinks to exactly 30% of its original size; metadata headers do not shrink.
No disk overhead is counted and MB is defined decimally.
Final Answer
34.56 MB (34,560,000 bytes).