Question
Java Question 22 (1 point) What is 3 + 4 * 4 > 1 + 5 * (4-2) || 5 < 7? Question 23 (1
Java
Question 22 (1 point)
What is 3 + 4 * 4 > 1 + 5 * (4-2) || 5 < 7?
Question 23 (1 point)
What is 3 + 4 * 4 > 1 + 5 * (4-2) || 5 < 7 && 4 < 3
Question 24 (2 points)
Write a Boolean expression so that it is true if the variable number is divisible by 2 and 3. Please don't use any parenthesis. You can write a correct Boolean expression without using any parenthesis because of the order of operations (or operator precedence).
Question 25 (2 points)
Write a Boolean expression so that it is true if the variable year contains a leap year number. A year is a leap year if it is divisible by 4 but not by 100, or it is divisible by 400.
Please don't use any parenthesis. If you do, you will lose all the points. You can write a correct Boolean expression without using any parenthesis because of the order of operations (or operator precedence).
Question 26 (2 points)
Write a Boolean expression so that it is true if the double variable bmi contains a value that interprets as Obese, That is, 25.0 <= bmi < 30.0
Please don't use any parenthesis. If you do, you will lose all the points. You can write a correct Boolean expression without using any parenthesis because of the order of operations (or operator precedence).
Question 27 (2 points)
Assume that a program randomly generates a lottery of a two-digit number and prompts the user to enter a two-digit number. Assume that the first and second digits of the lottery number are extracted and stored in variable lottery1 and lottery2 respectively. Assume that the first and second digits of the user-entered number are extracted and stored in variable user1 and user2 respectively. Write a Boolean expression that is true if the user input matches the lottery in exact order.
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