Write an if-else statement to describe an object. Print "Balloon" if isBalloon is true and isRed is false. Print "Red balloon" if isBalloon and isRed are both true. Print "Not a balloon" otherwise. End with newline. (Notes). Learn how our autograder works 487972.3377318.qx3zqy7 1 #include 2 using namespace std; 3 4 int main() { 5 6 7 8 9 10 11 12 13 14 } bool isRed; bool is Balloon; cin >> isRed; cinis Balloon; /* Your solution goes here */ return 0; 1 test passed All tests passed
Write an if-else statement to describe an object. Print "Balloon" if isBalloon is true and isRed is false. Print "Red balloon" if isBalloon and isRed are both true. Print "Not a balloon" otherwise. End with newline. (Notes). Learn how our autograder works 487972.3377318.qx3zqy7 1 #include 2 using namespace std; 3 4 int main() { 5 6 7 8 9 10 11 12 13 14 } bool isRed; bool is Balloon; cin >> isRed; cinis Balloon; /* Your solution goes here */ return 0; 1 test passed All tests passed
Related questions
Question
![Write an if-else statement to describe an object. Print "Balloon" if isBalloon is true and isRed is false. Print "Red balloon" if isBalloon
and isRed are both true. Print "Not a balloon" otherwise. End with newline. (Notes).
Learn how our autograder works
487972.3377318.qx3zqy7
1 #include <iostream>
2 using namespace std;
3
4 int main() {
5
6
7
8
9
10
11
12
13
14}
bool isRed;
bool is Balloon;
cin >> isRed;
cinisBalloon;
/* Your solution goes here */
return 0;
1 test
passed
All tests
passed](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fd30ea730-ba6b-4d49-90df-80ffc6e77ea4%2F8e7f8595-310e-4020-baf0-28b66b99b4af%2Flr9tia5_processed.png&w=3840&q=75)
Transcribed Image Text:Write an if-else statement to describe an object. Print "Balloon" if isBalloon is true and isRed is false. Print "Red balloon" if isBalloon
and isRed are both true. Print "Not a balloon" otherwise. End with newline. (Notes).
Learn how our autograder works
487972.3377318.qx3zqy7
1 #include <iostream>
2 using namespace std;
3
4 int main() {
5
6
7
8
9
10
11
12
13
14}
bool isRed;
bool is Balloon;
cin >> isRed;
cinisBalloon;
/* Your solution goes here */
return 0;
1 test
passed
All tests
passed
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 3 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)