0% found this document useful (0 votes)
10 views

Assignment 3

The document contains questions about converting between binary, decimal, and hexadecimal number systems, sampling resolution and how it affects sound quality, image resolution and file size calculations, run length encoding, and two programming questions asking users to input numbers or names and perform basic math or print operations on the inputs.

Uploaded by

Usman Sajid
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

Assignment 3

The document contains questions about converting between binary, decimal, and hexadecimal number systems, sampling resolution and how it affects sound quality, image resolution and file size calculations, run length encoding, and two programming questions asking users to input numbers or names and perform basic math or print operations on the inputs.

Uploaded by

Usman Sajid
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Assignment 3

Q1) Convert the


dencry number 95 into
Binary Coded Decimal (BCD) ·

Using two's complement the subtraction


b)
binary
:
,
carry out

00100011-01000100

and convert
your answer to
dencry .

c) Convert the denary number 506 to hexadecimal .

Q2c)i) State what is meant


by sampling resolution .

ii) Describe how sampling resolution will affect how accurate the

stored sound will be


resolution
b) Explain the
i) term image .

ii) One image is 1200 pixels wide and 1080 pixels high . It has a bit depth
of lobytes. What will be the size of the image in MB .

93 (i) Explain what is meant


by RLE .

ii) Write down the data you would expect to see in the RLE compressed
format. Grey squares are represented by a value 85 and white squares

by a value 255 .

Programming
P Take two numbers from Perform the operation + *
"
: as input user . of
and " and print the results .
(Use meaningful variable names) .

Q2 :
Take input from the user for their first name and last name and print them
together .

You might also like