Represent each of the following sentences by a Boolean equation. (a) The company safe should be unlocked only when Mr. Jones is in the office or Mr. Evans is in the office, and only when the company is open for business, and only when the security guard is present. (b) You should wear your overshoes if you are outside in a heavy rain and you are wearing your new suede shoes, or if your mother tells you to. (c) You should laugh at a joke if it is funny, it is in good taste, and it is not offensive to others, or if it is told in class by your professor (regardless of whether it is funny and in good taste) and it is not offensive to others. (d) The elevator door should open if the elevator is stopped, it is level with the floor, and the timer has not expired, or if the elevator is stopped, it is level with the floor, and a button is pressed.
Read moreTable of Contents
Textbook Solutions for Fundamentals of Logic Design
Question
A computer interface to a line printer has seven data lines that control the movement of the paper and the print head and determine which character to print. The data lines are labeled A, B, C, D, E, F, and G, and each represents a binary 0 or 1. When the data lines are interpreted as a 7-bit binary number with line A being the most significant bit, the data lines can represent the numbers 0 to \(127_{10}\). The number \(13_{10}\) is the command to return the print head to the beginning of a line, the number \(10_{10}\) means to advance the paper by one line, and the numbers \(32_{10}\) to \(127_{10}\) represent printing characters.
(a) Write an equation for the variable X which is 1 iff the data lines indicate a command to return the print head to the beginning of the line.
(b) Write an equation for the variable Y which is 1 iff there is an advance paper command on the data lines.
(c) Write an equation for the variable Z which is 1 iff the data lines indicate a printable character. (Hint: Consider the binary representations of the numbers 0–31 and 32–127 and write the equation for Z with only two terms.)
Solution
The first step in solving 4 problem number 22 trying to solve the problem we have to refer to the textbook question: A computer interface to a line printer has seven data lines that control the movement of the paper and the print head and determine which character to print. The data lines are labeled A, B, C, D, E, F, and G, and each represents a binary 0 or 1. When the data lines are interpreted as a 7-bit binary number with line A being the most significant bit, the data lines can represent the numbers 0 to \(127_{10}\). The number \(13_{10}\) is the command to return the print head to the beginning of a line, the number \(10_{10}\) means to advance the paper by one line, and the numbers \(32_{10}\) to \(127_{10}\) represent printing characters.(a) Write an equation for the variable X which is 1 iff the data lines indicate a command to return the print head to the beginning of the line. (b) Write an equation for the variable Y which is 1 iff there is an advance paper command on the data lines. (c) Write an equation for the variable Z which is 1 iff the data lines indicate a printable character. (Hint: Consider the binary representations of the numbers 0–31 and 32–127 and write the equation for Z with only two terms.)
From the textbook chapter Applications of Boolean Algebra Minterm and Maxterm Expansions you will find a few key concepts needed to solve this.
Visible to paid subscribers only
Step 3 of 7)Visible to paid subscribers only
full solution