1.[30 pts] Computers generate color pictures on a video screen or liquid crystal display by mixing three different colors of light: red, green, and blue. Imagine a simple scheme, with three different lights, each of which can be turned on or off, projecting onto a glass screen: We can create eight different colors based on the absence (0) or presence (1) of light sources R,G and B: R G B Color 0 0 0 Black 0 0 1 Blue 0 1 0 Green 0 1 1 Cyan 1 0 0 Red 1 0 1 Magenta 1 1 1 0 Yellow 1 White 1 Each of these colors can be represented as a bit vector of length 3, and we can apply Boolean operations to them. a. The complement of a color is formed by turning off the lights that are on and turning on the lights that are off. What would be the complement of each of the eight colors listed above? b. Describe the effect of applying Boolean operations on the following colors: Λ 1. Red(100) ^ Magenta(101)= Blue(001) 2. Bue(001) | Green(010)= 3. Yellow(100) & Cyan(011)= 2.[30 pts] Perform the following number conversions: Example: Binary Hexadecimal 11 1100 1010 1101 1011 0011 3 C A D B 3 a) Ox25B9D2 to binary b) Binary 1010111001001001 to hexadecimal c) OxA8B3D to binary d) Binary 1100100010110110010110 to hexadecimal 3.[20 pts] Binary to Decimal a) Convert the following unsigned binary number to decimal. (11111)2 = (?) 10 b) Convert the decimal number to Decimal. (11111.111)2 = (?) 10 4.[20 pts] Convert the following decimal numbers to binary. a) (0.3)10 b) (0.4)10
1.[30 pts] Computers generate color pictures on a video screen or liquid crystal display by mixing three different colors of light: red, green, and blue. Imagine a simple scheme, with three different lights, each of which can be turned on or off, projecting onto a glass screen: We can create eight different colors based on the absence (0) or presence (1) of light sources R,G and B: R G B Color 0 0 0 Black 0 0 1 Blue 0 1 0 Green 0 1 1 Cyan 1 0 0 Red 1 0 1 Magenta 1 1 1 0 Yellow 1 White 1 Each of these colors can be represented as a bit vector of length 3, and we can apply Boolean operations to them. a. The complement of a color is formed by turning off the lights that are on and turning on the lights that are off. What would be the complement of each of the eight colors listed above? b. Describe the effect of applying Boolean operations on the following colors: Λ 1. Red(100) ^ Magenta(101)= Blue(001) 2. Bue(001) | Green(010)= 3. Yellow(100) & Cyan(011)= 2.[30 pts] Perform the following number conversions: Example: Binary Hexadecimal 11 1100 1010 1101 1011 0011 3 C A D B 3 a) Ox25B9D2 to binary b) Binary 1010111001001001 to hexadecimal c) OxA8B3D to binary d) Binary 1100100010110110010110 to hexadecimal 3.[20 pts] Binary to Decimal a) Convert the following unsigned binary number to decimal. (11111)2 = (?) 10 b) Convert the decimal number to Decimal. (11111.111)2 = (?) 10 4.[20 pts] Convert the following decimal numbers to binary. a) (0.3)10 b) (0.4)10
C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter13: Structures
Section: Chapter Questions
Problem 4PP
Related questions
Question
![1.[30 pts] Computers generate color pictures on a video screen or liquid crystal display by
mixing three different colors of light: red, green, and blue. Imagine a simple scheme, with
three different lights, each of which can be turned on or off, projecting onto a glass screen:
We can create eight different colors based on the absence (0) or presence (1) of light
sources R,G and B:
R
G
B
Color
0
0
0
Black
0
0
1
Blue
0
1
0
Green
0
1
1
Cyan
1
0
0
Red
1
0
1
Magenta
1
1
1
0
Yellow
1
White
1
Each of these colors can be represented as a bit vector of length 3, and we can apply
Boolean operations to them.
a. The complement of a color is formed by turning off the lights that are on and turning
on the lights that are off. What would be the complement of each of the eight colors
listed above?
b. Describe the effect of applying Boolean operations on the following colors:
Λ
1. Red(100) ^ Magenta(101)= Blue(001)
2. Bue(001) | Green(010)=
3. Yellow(100) & Cyan(011)=
2.[30 pts] Perform the following number conversions:
Example:
Binary
Hexadecimal
11
1100
1010
1101
1011
0011
3
C
A
D
B
3
a) Ox25B9D2 to binary
b) Binary 1010111001001001 to hexadecimal
c) OxA8B3D to binary
d) Binary 1100100010110110010110 to hexadecimal](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F1f1cff89-d0c3-401a-ba77-d9b5f81fcda4%2Faa0116a0-4448-46af-ac5b-92b4b444cf0f%2Fu4tt0ai_processed.png&w=3840&q=75)
Transcribed Image Text:1.[30 pts] Computers generate color pictures on a video screen or liquid crystal display by
mixing three different colors of light: red, green, and blue. Imagine a simple scheme, with
three different lights, each of which can be turned on or off, projecting onto a glass screen:
We can create eight different colors based on the absence (0) or presence (1) of light
sources R,G and B:
R
G
B
Color
0
0
0
Black
0
0
1
Blue
0
1
0
Green
0
1
1
Cyan
1
0
0
Red
1
0
1
Magenta
1
1
1
0
Yellow
1
White
1
Each of these colors can be represented as a bit vector of length 3, and we can apply
Boolean operations to them.
a. The complement of a color is formed by turning off the lights that are on and turning
on the lights that are off. What would be the complement of each of the eight colors
listed above?
b. Describe the effect of applying Boolean operations on the following colors:
Λ
1. Red(100) ^ Magenta(101)= Blue(001)
2. Bue(001) | Green(010)=
3. Yellow(100) & Cyan(011)=
2.[30 pts] Perform the following number conversions:
Example:
Binary
Hexadecimal
11
1100
1010
1101
1011
0011
3
C
A
D
B
3
a) Ox25B9D2 to binary
b) Binary 1010111001001001 to hexadecimal
c) OxA8B3D to binary
d) Binary 1100100010110110010110 to hexadecimal
![3.[20 pts] Binary to Decimal
a) Convert the following unsigned binary number to decimal.
(11111)2 = (?) 10
b) Convert the decimal number to Decimal.
(11111.111)2 = (?) 10
4.[20 pts] Convert the following decimal numbers to binary.
a) (0.3)10
b) (0.4)10](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F1f1cff89-d0c3-401a-ba77-d9b5f81fcda4%2Faa0116a0-4448-46af-ac5b-92b4b444cf0f%2Fztkutvc_processed.png&w=3840&q=75)
Transcribed Image Text:3.[20 pts] Binary to Decimal
a) Convert the following unsigned binary number to decimal.
(11111)2 = (?) 10
b) Convert the decimal number to Decimal.
(11111.111)2 = (?) 10
4.[20 pts] Convert the following decimal numbers to binary.
a) (0.3)10
b) (0.4)10
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Recommended textbooks for you
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
![Systems Architecture](https://www.bartleby.com/isbn_cover_images/9781305080195/9781305080195_smallCoverImage.gif)
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
![Systems Architecture](https://www.bartleby.com/isbn_cover_images/9781305080195/9781305080195_smallCoverImage.gif)
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L