Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

A color image consist of 1024 rows of 1024 pixels. Each pixel has an RGB value.

ID: 3673360 • Letter: A

Question

A color image consist of 1024 rows of 1024 pixels. Each pixel has an RGB value. If we require 6 hexidecimal digits to store each RGB value, how many images could we store on a disc that holds 300MB?

There is an answer posted as:

1. Size of image = 1024 row * 1024 pixels = 1048576 pixels

2. each pixel has a RGB value which require 6 hex digits = 6*4 =24 bnary digits = 24/8 = 3 bytes.

3. memory for each image = 1048576* 3 bytes = (1048576/ 2^20) * 3 = 3MB

4. hence number of images = 300MB/3Mb = 100

but I do not not understand line number 3 and 4

Explanation / Answer

Here for every pixel it requires 3 bytes of storage so in step 3 we are converting total pixels into binary values.

then we will get total number of bits but in the problem it is mentioned that disc can hold 300MB so total bits are converting into MB's by dividing (2^20)*3 which results in 3MB which means per image it needs 3MB.

-->therefore total number of images that a disc can hold is 300/3=100.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote