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

Problem 1: Let’s start by practicing using logical operators and being careful about the order of...
Problem 1: Let’s start by practicing using logical operators and being careful about the order of execution when we use multiple of them in the same expression. Recall that Boolean expressions use conditional operators to implement basic logic. If all three operators appear in the same expression, Java will evaluate ! first, then &&, and finally ||. If there are multiples of the same operator, they are evaluated from left to right. Relational operators (like <, ==, etc) are evaluated...
create a program in java that will evaluate a logical expression (compound proposition) based on the...
create a program in java that will evaluate a logical expression (compound proposition) based on the given truth values of individual propositional variables. The logical expression may include the logical AND or the logical OR operators. The NOT operator will be included in the variable names itself. So, a proposition such as ¬a would appear as na in the logical expression. Here is an example of a logical expression using proper notation: a ∧ b ∨ ¬c ∨ d This...
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)
C++ Write a program that produces the truth table of the following logical operators. You aresupposed...
C++ Write a program that produces the truth table of the following logical operators. You aresupposed to output one table with all the operators (one column for each operator). Write theheader of the table - this is the name of the columns-. Output the result on the file prog1 output.txt. The table should contain the letters T and F, it should NOT print 1s and 0s. Show theresults on the following order: 1. negation (!) 2. disjunction (AND operator, &)...
How should one go about proving the following distributions without using truth tables only using logical...
How should one go about proving the following distributions without using truth tables only using logical laws. [ X ∧ (Y ⇒ Z) ≡ ? ] [ (Y ≡ Z ) ⇒ X ≡ ? ]
Task 1: HTML and CSS Create a website using HTML5 and CSS3 only. Website theme can...
Task 1: HTML and CSS Create a website using HTML5 and CSS3 only. Website theme can be anything you want: a country, a town, a place, a hobby, people (yourself, your family...), pets, flowers, food, or anything that you find interesting or useful. It may be about real people/places/things or fictitious. Part 1: Content (HTML) After you decide the theme of your website, create HTML pages with the content you want to present. Remember to separate content from presentation. The...
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.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT