Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

Add the tryIt4A.cpp program in your Lab4 folder to the project. Below is a copy of the source code lines that contain output statements.

Add the tryIt4A.cpp program in your Lab4 folder to the project. Below is a copy of the source code lines that contain output statements. Remember that arithmetic operations are done before relational operations and that relational operations are done before logical operations.  Recall also that if you output a Boolean variable or the result of a Boolean expression, true displays as a 1 and false displays as a 0.

1 // Lab 4 tryIt4A

10   cout << ( 3 == 4) << endl;

11   cout << ( 3 == 3) << endl;

12   cout << ( 5 == 3 + 2) << endl << endl;

14   cout << (7 > 5) << endl;

15   cout << (7 > 5 + 2) << endl;

16   cout << (2 >= 8 % 3) << endl << endl;

18   cout << (8 < 6) << endl;

19   cout << (3 * 5 < 2 * 9 - 1) << endl;

20   cout << (5 * 4 <= 40 / 2) << endl << endl;

22   cout << (3 != 5) << endl;

23   cout << (3 != 9 - 2 * 3) << endl;

24   cout << (10 != (4 * 5) / 2) << endl << endl;

26   cout << (5 > 6 && 3 < 4) << endl;

27   cout << (5 > 6 || 3 < 4) << endl;

28   cout << (!(7 > 6)) << endl << endl;

30   cout << ( 2 * 3 == 6 && !(1 > 2) ) << endl;

31   cout << ( !(2 * 3 == 6 && 1 > 2) ) << endl;

32   cout << ( !(2 * 3 == 6 && 1 != 2) ) << endl;

Fix the errors in the code using Arithmetic ,relational and logical operations. What is your output and line of code?

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question