CMSC 250 Fall 2004 -- Homework 3 Answer
Due Wed., Sept. 22 at the beginning of your discussion section.
You must write the solutions to the problems single-sided on your own lined paper, with all sheets stapled together, and with all answers written in sequential order or you will lose points.
- Consider a digital logic circuit that works as follows.
There are three inputs,
,
and
. The output of the cicuit must be the same as the value of
whenever the value of
is 1,
and the output of the circuit must be the same as the value of
whenever the value of
is 0.
- Write a logical expression that corresponds to this circuit.
Answer:
- Draw the diagram for this circuit, using only a combination of 2-input AND
gates, 2-input OR gates, and 1-input NOT gates.
Note 1: A ``2-input AND gate'' simply means that the AND gates has two
lines coming into it. It does not mean that you may only use two of these
gates in your circuit; you may use any number of each type of gate.
Note 2: Please label each gate in your circuit diagram to assist us in grading
your work.
Answer:
- Perform the following conversions and calculations.
Binary numbers shown here are represented in 8-bit 2's complement, and
your binary answers must also be represented in 8-bit 2's complement.
Showing your work will assist us in awarding partial credit.
-
Answer: -89
-
Answer: 175316
-
Answer: 146231
-
Answer: 00111000
-
Answer: 00101100
- Translate each of the following English sentences into formal
language -- that is, using the symbols
, etc. Then write
the negation of each statement in English, then translate the negation into formal
language. In your formal language statements, you may only use the domains
all people
and
all integers
. Be sure to
define all of the predicates you invent.
- Every good boy does fine.
Answer:
,
.
Negation: Some good boys does not do fine.
- Some Chinese speak Mandarin or Cantonese.
Answer:
,
,
.
Negation: All Chineses do not speak Mandarin and Cantonese.
- All integers which are singly even are divisible by two but not by four.
Answer:
,
,
.
Negation: There is an integer which is singly even but is either not divisible
by two or it is divisible by four.
- Let
mean ``student
majors in subject
,'' and
let
students
and
subjects
.
For each of the following statements, re-write each one formally using symbolic logic.
- Every students has some subject that they major in.
Answer:
- There is some student who does not major in any subjects.
Answer:
- Every subject is majored by some students.
Answer:
- There is a major that no student majors.
Answer:
Kin-Keung Ma
2004-09-22
Web Accessibility