Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. Indicate whether each expression is True or False a. (5 >= 4) _______________

ID: 3624548 • Letter: 1

Question


1. Indicate whether each expression is True or False
a. (5 >= 4) ______________________
b. (5 = = 4) ________________________
c. (4 > 4) _______________________
d. (7 < = 4) _____________________
e. (10 < 18) __________________________

2. Do the following expressions evaluate to True or False?
a. (3 < 4) || (3 > 4) ______________________
b. (3 != 3) && (4 = = 4) ______________________
c. (15 >= 15) && (16 = = 16) ______________________
d. (16 = = 16) || (14 < 2) ______________________
e. (15 = = 15) && (16 <= 14) ______________________

f.


3. Give detail explanation for the following?
a. && _________________________________________________
b. != _________________________________________________
c. | | _________________________________________________
d. % _________________________________________________
e. = = _________________________________________________

4. Write a relational expression to express the following conditions:
a. grade is less than 100
b. pounds is greater than 500 but less than 750
c. current month is November
d. gender equals male or age is greater than 50
e. item is equal to C or M
f. A pools width is greater than 50 feet but less than 75 feet

5. Determine the Output of the following: (DO NOT CODE … Use Desk Check)
a. int m=4, p=2;
if ( m = = 4)
m= m + 4;
else
p = p + 8;
cout <<“The value of M = ” << m <cout <<“The value of P = ” << p <

b. Provide 2 outputs assuming count = 10; count = 2;
if (count >= 5)
cout <<“Above Average”;

else if (count >=3)
cout <<“Right on Target”;

else if (count >=1)
cout <<“Below Average”;

else
cout <<“Do You Still Work Here ???”;

Explanation / Answer

please rate - thanks


1. Indicate whether each expression is True or False
a. (5 >= 4) __________true____________
b. (5 = = 4) ___________false_____________
c. (4 > 4) ____________false___________
d. (7 < = 4) __________false___________
e. (10 < 18) ___________true_______________

2. Do the following expressions evaluate to True or False?
a. (3 < 4) || (3 > 4) __________true____________
b. (3 != 3) && (4 = = 4) __________false____________
c. (15 >= 15) && (16 = = 16) _______true_______________
d. (16 = = 16) || (14 < 2) __________true____________
e. (15 = = 15) && (16 <= 14) _______false_______________

f.


3. Give detail explanation for the following?
a. && __________it is true only when both side are true, otherwise it's false_______________
b. != ___________it is true when the sides have different values______________________________________
c. | | __________it is false when both sides are false otherwise it is true_____________________
d. % ___________returns the remainder of the division______________________________________
e. = = __________it is true when both sides are the same_______________________________________

4. Write a relational expression to express the following conditions:
a. grade is less than 100        grade<100
b. pounds is greater than 500 but less than 750     pounds>500 && pounds <750
c. current month is November                  month.compareto("November")==0
d. gender equals male or age is greater than 50      gender.compareto("male")==0||age>50
e. item is equal to C or M    item=='C'||item=='M'
f. A pools width is greater than 50 feet but less than 75 feet     width>50&&width<75

5. Determine the Output of the following: (DO NOT CODE … Use Desk Check)
a. int m=4, p=2;
if ( m = = 4)
m= m + 4;
else
p = p + 8;
cout <<“The value of M = ” << m <cout <<“The value of P = ” << p <      The value of M is 8 the value of p is 2



b. Provide 2 outputs assuming count = 10; count = 2;
if (count >= 5)
cout <<“Above Average”;

else if (count >=3)
cout <<“Right on Target”;

else if (count >=1)
cout <<“Below Average”;

else
cout <<“Do You Still Work Here ???”;

Do you still work Here>