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
Write the logical expression for the control signal RF_Write assuming the instruction set consists only of...
Write the logical expression for the control signal RF_Write assuming the instruction set consists only of the instructions below. The answer should be similar to "B_Select = T3 ∙ (Load + Store + AddImm + …) + …" Add R3,R4,R5 Load R5,X(R7) Store R6,X(R8) Unconditional Branch Conditional Branch (Branch_if_[R5]=[R6] Loop) Subroutine Call (Call_Register R9)
In this question using c++, you have to design the Pascal triangle where you can create...
In this question using c++, you have to design the Pascal triangle where you can create a list of coefficients of a binomial of any size that is passed to the constructor. Data members and member functions of this class are of your design choice. You need to use only pointers and pointers to pointers (do not use regular array notations). Create a two-dimensional array in the heap memory (which creates a dynamic memory). Use an application program to print...
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...
9) Create a java programming where you will enter two numbers and create only one method,...
9) Create a java programming where you will enter two numbers and create only one method, which will return or display addition, substraction, multiplication, division, average and check which number is greater than the other. Everything in one method and call it in main method.
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 “...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT