Computer Science > QUESTIONS & ANSWERS > CS 115 - Lab 3 -Using Relational and Logical Operators to Evaluate Logical (Boolean) Expressions: Ne (All)
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”? [Show More]
Last updated: 1 year ago
Preview 1 out of 6 pages
Connected school, study & course
About the document
Uploaded On
Apr 28, 2023
Number of pages
6
Written in
This document has been written for:
Uploaded
Apr 28, 2023
Downloads
0
Views
25
In Browsegrades, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Browsegrades · High quality services·