Question
You are going to write in English and in short bits of code the following logic statement. s = The food is spicy. e =
You are going to write in English and in short bits of code the following logic statement.
s = The food is spicy.
e = Jose will eat it.
( s e ) ( e s )
1. Write the logic statement in English
2. Write the logic statement in JAVA using if statements.
3. Write the logic statement in JAVA using no if statements.
4. What did you learn by doing this project? Why do you think I wanted you to do it?
Example:
a = Ana likes dogs.
p = Ana pets the dog.
p (p a)
Written out in English: Ana pets the dog, or Ana pets the dog and Ana likes dogs.
Written out in JAVA:
p | (p & a)
Shortest possible code in JAVA:
p
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started