Question

In: Computer Science

create an expression using appropriate logical operators (AND,OR or NOT) 1. You can have only one...

create an expression using appropriate logical operators (AND,OR or NOT)

1. You can have only one meal
a. pizza
b. spaghetti

2. You need one of the following as proof of identity to get driver's license
a. passport
b. two of the following
(a) birth certificate
(b) ID CARD
(c) Bill statement with your name and address

Solutions

Expert Solution

Q1 You can have only one meal.

It is solve by using not gate if out put of not gate is

Output = 0 it means you have pizza

Output = 1 it means you have spaghetti

Input Output Meal
0 1 Spaghetti
1 0 Pizza

Q2 You need one of the following as proof of identity to get driver's license.

It is solve by using AND & OR gate.

AND gate is use for check  

Two of the following

(a) birth certificate.

(b) ID CARD.

(c) Bill statement with your name and address.

OR gate is use for check

one of the following as proof of identity

1. passport.

2. Two of the following.

Two of the following.

Birth certificate ID Card Bill

Birth certificate

AND

ID Card

Birth certificate

AND

Bill

ID Card

AND

Bill

Output

(OR of all AND)

0 0 0 0 0 0 0
0 0 1 0 0 0 0
0 1 0 0 0 0 0
0 1 1 0 0 1 1
1 0 0 0 0 0 0
1 0 1 0 1 0 1
1 1 0 1 0 0 1
1 1 1 1 1 1 1

one of the following as proof of identity

Passport Two of the following Output (OR)
0 0 0
0 1 1
1 0 1
1 1 1

Here in output

0 - Not valid proof

1 - Proof is valid

I hope this solution will help you.

If you have any doubts about this, then do comment below.

Do you feel it is helpful to you?

Then please up vote me.  

Thank You :)


Related Solutions

USING C++: Consider the precedence levels of the relational, logical, and arithmetic operators of the PySub...
USING C++: Consider the precedence levels of the relational, logical, and arithmetic operators of the PySub language to be as follows (NOTE: 5 has highest precedence and 0 lowest): 5 *, /, % 4 +, - 3 <, <=, >, >=, !=, == 2 not 1 and 0 or 1.  Infix-Postfix Conversion and Evaluation with Logical and Relational operators – Convert the following infix expression to a postfix expression and evaluate the result (assume that true=1 and false=0). Provide both the...
Show using a direct proof and logical operators the following set equality.A−BC= A∩B
Show using a direct proof and logical operators the following set equality.A−BC= A∩B
Q.1. Using the principles of coordination, subordination, logical ordering, phrasing and dividing, create an effective outline...
Q.1. Using the principles of coordination, subordination, logical ordering, phrasing and dividing, create an effective outline for a report that investigates the negative effects of excessive video games on children’s health. Your outline should show all the structural components of a regular report. You should assume that you are creating a real report outline and assume that the examiner (your audience) is reading a chapter heading, for instance.
1. Using an example that you create (does not have to be based on biology), come...
1. Using an example that you create (does not have to be based on biology), come up with an example of natural selection. Describe your starting population, what conditions must exist in order for natural selection to take place, and then the selection pressure acting on this population as well as the ending population. How does this illustrate the evolution of a population?
a. Create NAND gate using only transistors.
a. Create NAND gate using only transistors.b. Using the circuit block Create NAND gate using only transistors , attach additional components to the circuit to have the output of ANDgate.c. Explain both circuitsd. Out of CB, CC and CE which circuit will you use to amplify the sound output of your computer and why. Explain.
1. Suppose you are studying for the final exam. You have only one last hour to...
1. Suppose you are studying for the final exam. You have only one last hour to study either accounting, economics, or statistics. The marginal point per hour are 5, 3, and 4, respectively. Which subject should you study? (Assuming that you would pass all classes regardless of what you choose to study.) Accounting. Economics. Statistics. It does not matter. You would study either one of them. 2. Unit of Apples MU of Apple Unit of Oranges MU of Oranges 1st...
Assume that the operators of the fishing boat, “The Bearly Afloat” have a choice between using...
Assume that the operators of the fishing boat, “The Bearly Afloat” have a choice between using their boat for commercial fishing or for providing fishing excursions for small groups of tourists. Using the data below, construct a diagram of the Production Possibilities Curve for the operators from the data in the following table: Table: Production Possibilities for the “Bearly Afloat” Fish Catch Fishing Excursions (Kilos p a.) (trips p.a) 16000 and 0 14000 “ 30 12000 “ 48 10000 “...
1. Which of the following can be treated as a Boolean expression? A. an int expression...
1. Which of the following can be treated as a Boolean expression? A. an int expression B. any of these C. the result of a comparison(such as <or>) D. a float expression 2. Assuming the variable x contains an integer value what will the result of the following statement be: if x<0 or x>=0. A. True B. False C. Sometimes true and sometimes false D. A "math domain" error will occur
The < and == operators for the class Record have already been implemented for you.
The < and == operators for the class Record have already been implemented for you. Write the code necessary to complete the >, <=,>= and != operators. (hint: you do not need to know anything about the Record class to complete)
How can I create a normal distribution in excel when the only data I have is...
How can I create a normal distribution in excel when the only data I have is mean and standard deviation?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT