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

icon
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
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
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 3 images

Blurred answer