menu
QAmmunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
Register
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
4.2k
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
4.3k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
4.5m
questions
5.9m
answers
Other Questions
______ is/are artwork available for computer documents that include artwork such as drawings or stock photography. Online pictures Smart art Picture styles Illustrations
The _____ feature will allow users to view nonprinting formatting marks to aid in editing a document. View Alignment Show/Hide Insert
Which function works best when you need to remove an element at a pacific index and a list
The _____ icon looks like a clipboard with a page of paper attached. Cut Copy Paste Clipboard
What is TCP/IP? a cloud software name an ISP(internet service provider) the protocol that underlies most of the Internet another name for the transport layer
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search QAmmunity.org