menu
QAmmunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
What is wrong with the following code? publicstatic char grade(int score) { if (score >= 9) { return 'A'; } else if (score >= 8) { return 'B'; } else if (score >= 6) { return 'C'; } else if (score > 4)
asked
Dec 19, 2022
172k
views
3
votes
What is wrong with the following code? publicstatic char grade(int score) { if (score >= 9) { return 'A'; } else if (score >= 8) { return 'B'; } else if (score >= 6) { return 'C'; } else if (score > 4) { return 'D'; } else if (score < 4) { return 'F'; } }
Computers and Technology
high-school
Animesh Pandey
asked
by
Animesh Pandey
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
4
votes
Answer:
c) No return statement for all possible logic paths
GRZa
answered
Dec 24, 2022
by
GRZa
8.4k
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
Jun 19, 2020
97.4k
views
What would be the value of bonus after the following statements are executed? int bonus, sales = 85000; char dept = 'S'; if (sales > 100000) if (dept == 'R') bonus = 2000; else bonus = 1500; else if (sales
Leenasn
asked
Jun 19, 2020
by
Leenasn
8.3k
points
Computers and Technology
high-school
1
answer
0
votes
97.4k
views
asked
Jul 23, 2021
186k
views
What will be the value of bonus after the following code is executed? int bonus, sales = 85000; char dept = 'S'; if (sales > 100000){ if (dept == 'R') bonus = 2000; else bonus = 1500; else if (sales >
Qasimalbaqali
asked
Jul 23, 2021
by
Qasimalbaqali
7.3k
points
Physics
high-school
1
answer
4
votes
186k
views
asked
Sep 6, 2024
75.2k
views
I have this code so far #include #include #include #include using namespace std; const int MAX_RECORD = 100; struct instructers{ int instructorID; int salary; char middleInital; string payrollCode; string
Erdeszt
asked
Sep 6, 2024
by
Erdeszt
8.3k
points
Computers and Technology
college
1
answer
4
votes
75.2k
views
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
9.5m
questions
12.2m
answers
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
describe an advance in technology that makes life more enjoyable. what discoveries contribute to this technology?
Disadvantages of using animation in advertising? advantages and disadvantages of using animation for education? advantages and disadvantages of using animation in entertainment?
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search QAmmunity.org