question archive Suppose a digital camera has a storage capacity of 256MB
Subject:Computer SciencePrice:2.89 Bought3
Suppose a digital camera has a storage capacity of 256MB. How many photographs could be stored in the camera if each consisted of 1024 pixels per row and 1024 pixels per column if each pixel required three bytes of storage?
Calculating Number of Photographs
Let us consider the photograph which consists of 1024 pixels per row and 1024 pixels per column.
Here, each pixel is required three bytes of storage and the digital camera has the storage capacity of 256 MB.
We have to find out the number of photographs that can be stored in the camera.
The number of pixels occupied by the photograph
= 1024 × 1024 pixels
If each pixel requires three bytes of storage then total storage or a photograph
= 1024 × 1024 × 3
= 3145728
≈ 3 MB
A digital camera has the total storage capacity is 256 MB and then the number of photographs that can be stored in the digital camera is:
= 256 / 3
= 85
Hence, 85 photographs can be stored in the digital camera.