Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Introductions Recall the Boolean expression from the Discrete mathematics course. Where there are certain propositional variables: p , q , r , s , t

Introductions
Recall the Boolean expression from the Discrete mathematics course. Where
there are certain propositional variables: p,q,r,s,t,u and if you need more
than that you can use p1, p2, p3,
and there are three basic operations:,+.,
,+ is for the OR operations,. Is for the AND operations and the third one is
for the negations. And if you have certain Boolean expression you can give the
value of that expression based on the value of the variables. For example
p+qr and the values of p is 1 and q is 1 and r is 0, then the value of the
expression is 1.
What you need to do with java programming is to build a system that consists
of two parts:
First Part: you have a text file that have many expression, each expression is in
single line. You need to read each expression and system will give the value of
each expression based on input values for each logical variable.
Second part: you need to have away to read a Boolean expression and the
system will draw the gates of the system on a panel form then based on
variable values of input the output of the expression will show up at the end.
You can indicated that using the color or (HL) for each output gate. The graph
below shows such case.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

New Trends In Databases And Information Systems Adbis 2019 Short Papers Workshops Bbigap Qauca Sembdm Simpda M2p Madeisd And Doctoral Consortium Bled Slovenia September 8 11 2019 Proceedings

Authors: Tatjana Welzer ,Johann Eder ,Vili Podgorelec ,Robert Wrembel ,Mirjana Ivanovic ,Johann Gamper ,Mikolaj Morzy ,Theodoros Tzouramanis ,Jerome Darmont

1st Edition

3030302776, 978-3030302771

More Books

Students also viewed these Databases questions