Question

D Question 1 3 pts Construct an C expression to express the following conditions: Example: a is between 1 and 100. Answer: a 1 && a<-100 1) x is equal to or greater than 90 but smaller than 100 2) y is not between 40 and 60 3) z is between 20 and 30 but not equal to 25 HTML Editoru
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Here you go as requested I have provided the required expressions.

If there is any further query kindly add it as a comment.

*******************************************************************
1. x is equal to or greater than 90 but smaller than 100

Ans: ((x>=90) && (x<100))

*******************************************************************

2. y is not between 40 and 60

Ans:

Assumption 1:
Considering that y can be 40 or 60

1. (!((y>40)&&(y<60)))
2. ((y<=40)||(y>=60))

Assumption 2:
Considering that y can not be 40 or 60

1. (!((y>=40)&&(y<=60)))
2. ((y<40)||(y>60))

*******************************************************************

3. z is between 20 and 30 but not equal to 25

Ans: ((z>20) && (z<30) && (z!=25))

*******************************************************************

Add a comment
Know the answer?
Add Answer to:
D Question 1 3 pts Construct an C expression to express the following conditions: Example: a...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Construct an C expression to express the following conditions: Example: a is between 1 and 100....

    Construct an C expression to express the following conditions: Example: a is between 1 and 100. Answer: a>=1 && a<=100 1) x is equal to or greater than 90 but smaller than 100 2) y is not between 40 and 60

  • 4. Construct a logical expression to represent each of the following conditions: a. chris either 'B,...

    4. Construct a logical expression to represent each of the following conditions: a. chris either 'B, or ‘b' b. x is even but not 30 c. y is in the range 3000-4500 or z is 5. d. x being a value between, but not including, 500 and 650, or y not equal to 1000. x being a value less than or equal to 500 or greater than 650, and y not equal to 1000. e. (20 points) 5. Write C++...

  • Question 2 3 pts The boxplots below show the distribution of test scores for two classes....

    Question 2 3 pts The boxplots below show the distribution of test scores for two classes. Class A Class B 0 10 20 30 40 50 60 70 80 90 100 Test scores Which of the following statements is a valid conclusion that can be drawn from the boxplots? Choose all that apply. Class A and B have approximately the same percentage of students who scored 70 or higher on the test. Class A has a greater percentage of students...

  • Example 3.3 Assuming that Figure 3.5 is characteristic of the particulates, pre- dict the overall efficiency...

    Example 3.3 Assuming that Figure 3.5 is characteristic of the particulates, pre- dict the overall efficiency of a device that has the following efficiency versus size relationship: Size Range, μm 0-2 2-4 4-6 6-10 10-14 14-20 20-30 30-50 >50 10 30 60 80 90 95 98 12 17 25 40 >50 100 Cumulative % greater than dp 99.99 99.8 99 9895 90 80 70 60 50 40 30 20 10 5 21 0.5 0.2 40 0.01 40 30 30 20...

  • Automated electron backscattered diffraction is now being used in the study of fracture phenomena. The following...

    Automated electron backscattered diffraction is now being used in the study of fracture phenomena. The following information is on misorientation angle (degrees). Class: 0-<5 5-<10 10-<15 15-<20 20-<30 30-<40 40-<50 60-90 Rel freg: 0.176 0.160 0.177 0.131 0.195 0.080 0.049 0.032 (a) Is it true that more than 50% of the sampled angles are smaller than 15, as asserted by researchers? Yes, the proportion of sampled angles smaller than 15° is greater than 0.50 Yes, the proportion of sampled angles...

  • Please answer all 3 questions 8. 7. Question 9 1 pts Assume that the data has...

    Please answer all 3 questions 8. 7. Question 9 1 pts Assume that the data has a normal distribution and the number of observations is greater than fifty. Find the critical z value used to test a null hypothesis. a=0.05 for a test of the hypothesis that the mean is greater than or equal to 98. 0 -2.326 0 -1.960 0 -1.645 O +1.645 O 1.960 Find the appropriate critical value (either Za/2 or ta/2) Confidence level = 99% and...

  • c++ O fe/C/Users/Younis/App ft.Microsoftedgc b17%20(1)pdf 1 of 1 CSC 2000 C+t Programming Language Winter Term 2019...

    c++ O fe/C/Users/Younis/App ft.Microsoftedgc b17%20(1)pdf 1 of 1 CSC 2000 C+t Programming Language Winter Term 2019 Lab 17 10 points Due in Lab Write a C++program that inputs 15 real numbers into a three by five two- dimensional array; also write a function that determines the total number of values in these ranges: less than 60, greater than or equal to 60 and less than 70, greater than or equal to 70 and less than 80, greater than or equal...

  • Question 19 1 pts The market for soccer balls is characterized by the following supply and...

    Question 19 1 pts The market for soccer balls is characterized by the following supply and demand curves. What is the equilibrium price (P*)? D-100-2P Qs-2P (P: $/ball ; Q: balls) 1. P $20 2. P*-$25 3. P* $50 4. P* $100 P $20 P* $25 P* $50 P*-$100 Question 20 1 pts The market for solar heaters in Sugar Lake City is characterized by the following equations. What is the equilibrium price (P") and the equilibrium quantity (Q") for...

  • Table 1 Column 1 Column 2 Column 3 Profits S1,000s) Project A Probability (% 10 Project...

    Table 1 Column 1 Column 2 Column 3 Profits S1,000s) Project A Probability (% 10 Project B Probability (% S 20 10 40 15 60 50 25 80 40 100 10 10 1.1 Find the expected value, and the standard deviation of X and Y 1.2 Find the distribution functions of Project A (F(x), and Project B (G(x)) 1.3 Find the probability that profits of Project A are less than or equal to $40,000. That is P(XS40) 1.4 Find the...

  • (b) Construct the hypothetical ternary system A-B-C which represents the following conditions assuming A-B-C system does...

    (b) Construct the hypothetical ternary system A-B-C which represents the following conditions assuming A-B-C system does not have solid solutions (label all areas): i. Melting temperature of each component is as follows: a. Component Amelts at 1000 °C. b. Component B melts at 900 °C. c. Component C melts at 800 °C. ii. Three binary eutectic reactions occur at the following conditions: a. A-B eutectic point at 60 mol% A and 40 mol% B, and at 700C b. B-C eutectic...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT