menu
Qamnty
Login
Register
My account
Edit my Profile
Private messages
My favorites
The following code uses a nested if statement. if (employed == 'Y') cout << "Employed!" << endl; else if (employed == 'N') cout <<…
Ask a Question
Questions
Unanswered
Tags
Ask a Question
The following code uses a nested if statement. if (employed == 'Y') cout << "Employed!" << endl; else if (employed == 'N') cout <<…
asked
Jan 21, 2021
235k
views
0
votes
The following code uses a nested if statement.
if (employed == 'Y')
cout << "Employed!" << endl;
else if (employed == 'N')
cout << "Not Employed!" << endl;
else
cout << "Error!" << endl;
a. True
b. False
Computers & Tech
college
Troyer
asked
by
Troyer
8.4k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
1
vote
Answer:
true
Step-by-step explanation:
else if used so I think it's true
Goseta
answered
Jan 26, 2021
by
Goseta
8.2k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
Nov 27, 2024
102k
views
What is the output of this nested loop ? i = 4; while( i >= 1) { j= 1; while (j > = 1) { cout << j; j = j - 1; } cout << i << endl; i = i - 1; }
Asesh
asked
Nov 27, 2024
by
Asesh
8.0k
points
Computers & Tech
high-school
1
answer
0
votes
102k
views
asked
Jan 14, 2024
141k
views
What would be the output of the following code? #include < using namespace std; int main() { int x = 30; if(x > 20) if (x < 30) cout << x*2 << endl; else cout << x*3 << endl; cin.ignore(); return 0; }
ASP
asked
Jan 14, 2024
by
ASP
7.5k
points
Computers & Tech
college
1
answer
0
votes
141k
views
asked
Jul 25, 2024
181k
views
Which of the following suggested changes will fix the error(s) in this code? double num1, num2; cout << "Please enter two numbers: "; cin >> num1 >> num2; if (num2 == 0) cout << "Division by zero is not allowed. " << endl; cout << "Please run the program again. " << endl; else cout << "The result is: " << num1/num2;
Ania
asked
Jul 25, 2024
by
Ania
8.7k
points
Computers & Tech
high-school
1
answer
4
votes
181k
views
Ask a Question
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.
Categories
All categories
Mathematics
(3.7m)
History
(955k)
English
(903k)
Biology
(716k)
Chemistry
(440k)
Physics
(405k)
Social Studies
(564k)
Advanced Placement
(27.5k)
SAT
(19.1k)
Geography
(146k)
Health
(283k)
Arts
(107k)
Business
(468k)
Computers & Tech
(195k)
French
(33.9k)
German
(4.9k)
Spanish
(174k)
Medicine
(125k)
Law
(53.4k)
Engineering
(74.2k)
Other Questions
“What does it mean when we “rework” copyrighted material?”
The book shows how to add and subtract binary and decimal numbers. However, other numbering systems are also very popular when dealing with computers. The octal (base 8) numbering system is one of these.
Seven basic internal components found in a computer tower
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search Qamnty