CS 115 - Lab 3 -Using Relational and Logical Operators to Evaluate Logical (Boolean) Expressions: New Jersey Institute Of Technology
CS 115 -Using Relational and Logical Operators to Evaluate Logical (Boolean) Expressions: New Jersey Institute Of TechnologyEvaluate the logical (Boolean) expression in the Expression column, and circ le all possible answers in the Result column. For char and string types, use the ASCII collating sequence.Using Nested if and if…else Statements 1a. Write what the following statements display as output after the program executes. int temperature = 78; int month = 6; string name = “Pat Boone”; if ( temperature = 70 && month =6) cout “Wear white shoes.n”; else if (name == “Pat Boone”) cout “Wear white shoes.n”; else cout “Wear black shoes.n”; Wear white shoes 1b. What is the output of the program in Exercise 1a when temperature = 70, month = 5, and name = “Pat Boone”?
Written for
- Institution
- CS 115 - Lab 3 -Using Relational and Logical
- Course
- CS 115 - Lab 3 -Using Relational and Logical
Document information
- Uploaded on
- April 28, 2023
- Number of pages
- 6
- Written in
- 2022/2023
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
cs 115 lab 3 using relational and logical operators to evaluate logical boolean expressions new jersey institute of technology