Question
1. Which of the following conditions are equivalent (that means have the same true value)? a) num != 0 d) !num b) num == 0
1. Which of the following conditions are equivalent (that means have the same true value)?
a) num != 0 d) !num
b) num == 0 e) !(num == 0)
c) num
2. Suppose that a persons age is stored in the variable age, his number of children in the variable numChild, his salary in the variable salary, and his height in the variable height. Write the relational expressions to specify the following conditions:
he is 45 year old.
he is more than 5.7 feet tall.
his salary is between 35,000 and 50,000.
he does not have 3 children.
he is either 6.0 feet tall, or he has less than 4 children.
he is not older than 35 and he has 2 or 3 children
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