menu
Qammunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
What is wrong with the following code? publicstatic char grade(int score) { if (score >= 9) { return 'A'; } else if (score >= 8) { return 'B'; } else i…
Ask a Question
Questions
Unanswered
Tags
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 i…
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 & Tech
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 & Tech
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 & Tech
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.4m
questions
12.2m
answers
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?”
Seven basic internal components found in a computer tower
Please help me ! All you do is just put it it all in your own words ! Please this is for my reported card!i don't know how to put it in my own words because my English is not that good!
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search Qammunity.org