I308 C307 Data/Information Representation

I308 C307 Homework 3

Due Date: Monday, January 31, 2022.

There is no lab for this homework, but the lectures contain similar examples to those in the exercises. In this homework, we will work with the logical operators and the representation of the media data.

Ex. 1. Logical Operators

a. Truth tables Draw the truth tables for the following expressions:

b. Digital gates

For each of the expressions above, draw a circuit using the gates from the lecture. For example, for the first one you need 3 inputs, for the variables A, B, and C, and you need to use and AND gate to connect A and B, and then an XOR gate to connect the output from the first gate with the input C.

Ex. 2. Data Representation

a. HTML colors

For each of the following codes, give the value of each of the red, green, and blue components, and then make a guess about what the color will look like.

b. Audio file. Considering that we use an uncompressed sound wave representation with 8 bits per sample (1 byte), and 100 samples per second, calculate the size of a 1 minute sound file.

c. Video file. Calculate the size of a 1 minute uncompressed video file that uses 30 frames per second, in a size of 640x480 pixels per frame, with 24 bits (3 bytes) per pixel.

Homework Submission

Upload any files needed for Exercises 1 and 2, to Canvas, Assignments, Homework 3.