Question

In: Computer Science

Check off the equations below that are accurate A , B, C are numeric variables A...

Check off the equations below that are accurate

A , B, C are numeric variables

A = 3, B= 2, C = 1

note , the symbol == means a test for equality, not assignment..

3 * 5 > 2 * 6 is True

A > B  or  A  < C is True

3 + 5 > 2 + 6 is True

A > B and  not ( A  < C)   is True

A < 5 or A == 5 or A >5   is True

3 > 1 or 3 == 1   is True

Solutions

Expert Solution

Given A=3, B=2 and C=1

a) 3* 5 > 2* 6

Sol: 3 *5 > 2* 6

-> 15 > 12

-> true

3 * 5 > 2 * 6 is TRUE

-----------------------------------------

b) A > B or A < C

-> here A= 3, B= 2 and C=1

-> 3 > 2 or 3 < 1

->true or false

-> TRUE

A > B  or A <C is TRUE

--------------------------------------------

c) 3 + 5 > 2 + 6

-> 3+5 > 2 + 6

-> 8 > 8

-> False

3 + 5 > 2 + 6 is FALSE

--------------------------------------------

d) A > B and not (A<c)

-> A > B and not(A < C)

-> 3 > 2 and !(3 < 1)

-> 3 > 2 and !(False) !(false) = true and !(true) = false

-> 3>2 and True

-> true and true

-> True

A > B and not(A <C) is TRUE

------------------------------------

e) A < 5 or A == 5 or A > 5

-> 3 < 5 or 3 == 5 or 3 > 5

-> true or false or false

-> TRUE

A < 5 or A == 5 or A > 5 is TRUE

-----------------------------------------

f) 3 > 1 or 3 == 1

-> true or false

-> true

3 > 1 or 3 == 1 is TRUE

---------------------------------------


Related Solutions

If A, B, and C events are independent, check if B and A \ C events...
If A, B, and C events are independent, check if B and A \ C events are independent or not.
The below provides information about the dataset. Input variables (based on physicochemical tests) Fixed acidity Numeric...
The below provides information about the dataset. Input variables (based on physicochemical tests) Fixed acidity Numeric Volatile acidity Numeric Citric acid Numeric Residual sugar Numeric Chlorides Numeric Free sulfur dioxide Numeric Total sulfur dioxide Numeric Density Numeric pH Numeric Sulphates Numeric Alcohol Numeric (%) Wine Type red or white Output variable (based on sensory data) Quality Score between 0 and 10 in ordinal Data set fixed acidity volatile acidity citric acid residual sugar chlorides free sulfur dioxide total sulfur dioxide...
Check if (A x B) x C = A x (B x C) using half-precision format....
Check if (A x B) x C = A x (B x C) using half-precision format. Let A = 3.41796875x10 -3 = 1.1100000000 x 2 -9 B = 4.150390625 x10-3 = 1.0001000000 x 2-8 C = 1.05625x102 = 1.1010011010 x26 Calculate (A x B) x C by hand, assuming each of the values are stored in the 16-bit half precision format described in Exercise 3.27 (and also described in the text). Assume 1 guard, 1 round bit, and 1 sticky...
1 For each of the following variables, identify the type of variable (numeric or categorical) and...
1 For each of the following variables, identify the type of variable (numeric or categorical) and level of measurement (nominal, ordinal, interval, or ratio). a. Business size (micro, small, medium, large) b. Airplane ticket price 2 Consider the following sample of data: 1.2 28.4 32.6 17.0 13.5 2.2 38.0 41.4 1.9 14.4 21.8 23.8 a. Calculate the quartiles. b. Calculate the average c. Calculate the standard deviation. 3  Given the following five-number summary, are there any outliers in the data? Min:...
Assume that: float a, b, c, d, f; and variables b, c, d, f are initialized....
Assume that: float a, b, c, d, f; and variables b, c, d, f are initialized. Write a line of c++ code that calculates the formula below and stores the result to the variable a:
this is a C++ class Topics Numeric Input (Whole Numbers) Assignment Finding Quotient Finding Remainder Numeric...
this is a C++ class Topics Numeric Input (Whole Numbers) Assignment Finding Quotient Finding Remainder Numeric Output (Whole Numbers) Description Write a program that will convert a distance entered in inches to a distance in yards, feet and inches. The program will ask the user to input a distance in inches as a whole number. It will convert the distance entered into yards, feet and inches. Then it will display the distance in yards, feet and inches. For example, the...
why is regression mainly connected to models and equations while correlation is mainly connected to numeric...
why is regression mainly connected to models and equations while correlation is mainly connected to numeric variables? Could it be used differently ?
why is it important to provide a thorough and accurate hand off report to the nurse...
why is it important to provide a thorough and accurate hand off report to the nurse who will be assuming care of the patient?
Consider the system of equations 2x-5y=a 3x+4y=b 2x- 4y=c where a, b, c are constants. Because...
Consider the system of equations 2x-5y=a 3x+4y=b 2x- 4y=c where a, b, c are constants. Because there are 3 equations and 3 unknowns, there are no possible values of a, b and c for which the system of equations has a unique solution. True or false?
Write the balanced complete ionic and net ionic equations for Reaction A, B and C. For...
Write the balanced complete ionic and net ionic equations for Reaction A, B and C. For reaction A calculate the heat of neutralization, in kJ / mol, for reaction B and C calculate the heat of reaction, in kJ / mol.. 1. Reaction A : Aqueous sodium hydroxide, a strong electrolyte, reacts with aqueous hydrochloric acid, a strong electrolyte. Contains: 25.0 mL 1.0 M HCl and  25.0 mL 1.0 M NaOH Ti:25.0 C Tf: 31.67 C 2. Reaction B: Solid sodium...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT