Answers
Solution
12)
a)
false true false
Explanation
b)
x is at least 25 True
x is between 25 and 50, inclusive (i.e., including the endpoints of the interval) True
y is either 10 or 12 characters long False
x is equal to the three times the length of y False
the length of y is not divisible by 3 False
x is negative or else x is even and divisible by 3 True
y is not equal to the string “dinner” True
--
all the best
lI Result Execute Share Source File STDIN public class problema { public static void main(String [Jargs) { int x - 42; String y = "lunchtime "; boolean a,b, c; $javac problema.java 2 $java -Xmx128M -Xms16M problema false 4 - true false 6 7 8 a-(y.equals("breakfast") || x != 42); b-(x 5 || (y.length() > 0 && !(x <= 0))); c=(!((x System.out.println ( a) ; System.out.println(b); System.out.println (c) ; 16 0 && x> 1) || x > 2)); 11 12 13 14 15 16 17
.
Similar Solved Questions
1 answer
Please prove validity using fitch -AAE B -D -B - A FEA -D
please prove validity using fitch -AAE B -D -B - A FEA -D...
1 answer
5. The graph below shows incomes of a sample of young people who graduated from the...
5. The graph below shows incomes of a sample of young people who graduated from the high school in your community six months ago. Which is more likely? Frequency 0 1000 4000 5000 6000 2000 3000 income A. The mean is smaller than the median B. The mean is larger than the median C. The mean is equal t...
1 answer
Question 6 (1 point) If 1 - p is the probability of failure in a trial...
Question 6 (1 point) If 1 - p is the probability of failure in a trial of a binomial probability experiment, then what is the probability of success? Oq Op? 01-1-p OP Previous Page Next Page Page 6 of 34...
1 answer
I don't know how to do both a and b 16. The folium of Descartes is the curve C c R2 described by the equation a) Give a parametrization of C. Hint: Use t y/r as parameter b) Compute the area of th...
I don't know how to do both a and b 16. The folium of Descartes is the curve C c R2 described by the equation a) Give a parametrization of C. Hint: Use t y/r as parameter b) Compute the area of the "leaf." 16. The folium of Descartes is the curve C c R2 described by the equation a) Give...
1 answer
Saved Help Save & Exit "CYM CURRICULUI E2-9 (Algo) Analyzing the Effects of Transactions in T-Accounts...
Saved Help Save & Exit "CYM CURRICULUI E2-9 (Algo) Analyzing the Effects of Transactions in T-Accounts LO 2-4 [The following information applies to the questions displayed below.) Griffin Service Company, Inc., was organized by Bennett Griffin and five other investors. The following activiti...
1 answer
A caffeine patch has been designed which releases 300 mg of caffeine over six hours. You...
A caffeine patch has been designed which releases 300 mg of caffeine over six hours. You are concerned that this patch could pose serious health risks if accidentally left on as there is no way to control the caffeine release. The patch is applied to the shoulder where the skin is 1.5 mm thick. You ...
1 answer
The Greco Company is decentralized, and divisions are considered investment centers. Greco has one division that manufa...
The Greco Company is decentralized, and divisions are considered investment centers. Greco has one division that manufactures oak dining room chairs with upholstered seat cushions. The Chair Division cuts, assembles, and finishes the oak chairs and then purchases and attaches the seat ...
1 answer
Suppose researchers determined that a new drug has a 55% chance of preventing a certain flu...
Suppose researchers determined that a new drug has a 55% chance of preventing a certain flu strain if the drug is administered to 10 male subjects, what is the probability that the drug it will be effective in preventing the flu strain for fewer than three of the male subjects? Select one: a. 0.0995...
1 answer
: When a 3 kg mass is attached to a spring whose constant is 12 N/m,...
: When a 3 kg mass is attached to a spring whose constant is 12 N/m, it comes to rest in the equilibrium position. Starting at i=0, a force equal to f(t) = 15e-54 cos 4t is applied to the system. In the absence of damping, (a) find the position of the mass when t=n. (b) what is the amplitude of vibr...
1 answer
Select the product for the decarboxylation of the molecule below: Sel Ho lerodut fo Ane decabony...
Select the product for the decarboxylation of the molecule below: Sel Ho lerodut fo Ane decabony lation moleule loeloud heaty coat OH...
1 answer
Calculate the equilibrium partial pressure of PCl3
PCl3 + Cl2 = PCl5 (equilibrium)Kp = 0.0870 at 300 degrees0.50 atm PCl30.50 atm Cl20.20 atm PCl5...
1 answer
Draw a detail arrow pushing mechanism for the following reaction. Also show the resonance structures of...
Draw a detail arrow pushing mechanism for the following reaction. Also show the resonance structures of the intermediate whenever appropriate. -OH 50% H2SO4 Heat OR...
1 answer
I need help with this question, my topic area is : the effects of Nursing shortages...
I need help with this question, my topic area is : the effects of Nursing shortages Instructions Consider your topic, problem, likely solution and the five ethical theories presented below. Which one of these theories is most important or applicable to your topic area? Which is least connected or re...
1 answer
In weeks 1 and 2, via your introduction to the critical thinking process, you are briefly introduced to some of the most powerful and complex questions humans have ever asked: What is truth
In weeks 1 and 2, via your introduction to the critical thinking process, you are briefly introduced to some of the most powerful and complex questions humans have ever asked: What is truth? What is knowledge? How do you know what you know? In this assignment, you will start using what you have lea...
1 answer
(4 points) Smart Driver Driving School has many branches across provinces. In a province different from...
(4 points) Smart Driver Driving School has many branches across provinces. In a province different from the one in problem 1, the teaching committee at the provincial branch randomly assigned half of their 5000 students enrolled this year to receive the conventional teaching method and the remaining...
1 answer
Explain i) how the Nasdaq Composite index and its P/E ratio changed during the past 20...
explain i) how the Nasdaq Composite index and its P/E ratio changed during the past 20 years, and ii) why most investors think there was a bubble in the valuation of technology stocks 20 years ago but not now....
1 answer
(a) What is the force per meter (in N/m) on a lightning bolt at the equator...
(a) What is the force per meter (in N/m) on a lightning bolt at the equator that carries 19,630 A perpendicular to the Earth's 3.00 x 10-5 T field? N/m (b) What is the direction of the force if the current is straight up and the Earth's field direction is due north, parallel to the ground? -...