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.
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.
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.
Upload any files needed for Exercises 1 and 2, to Canvas, Assignments, Homework 3.