Top Posters
Since Sunday
A
6
j
6
c
5
m
5
C
5
d
5
s
5
n
4
i
4
d
4
d
4
J
4
New Topic  
banggedung banggedung
wrote...
Posts: 450
Rep: 4 0
4 years ago
You should fill in the blank in the following code with ________.

public class Test {
public static void main(String[] args) {
System.out.print("The grade is " + getGrade(78.5));
System.out.print("\nThe grade is " + getGrade(59.5));
}

public static ________ getGrade(double score) {
if (score >= 90.0)
return 'A';
else if (score >= 80.0)
return 'B';
else if (score >= 70.0)
return 'C';
else if (score >= 60.0)
return 'D';
else
return 'F';
}
}


▸ int

▸ char

▸ boolean

▸ void

▸ double
Textbook 
Introduction to Java Programming, Comprehensive Version

Introduction to Java Programming, Comprehensive Version


Edition: 10th
Author:
Read 72 times
1 Reply
Replies
Answer verified by a subject expert
christinaalexchristinaalex
wrote...
Posts: 393
4 years ago
Sign in or Sign up in seconds to unlock everything for free
More solutions for this book are available here
1

Related Topics

banggedung Author
wrote...

4 years ago
I appreciate what you did here, answered it right Smiling Face with Open Mouth
wrote...

Yesterday
You make an excellent tutor!
wrote...

2 hours ago
This calls for a celebration Person Raising Both Hands in Celebration
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  791 People Browsing
Related Images
  
 1049
  
 1229
  
 4250
Your Opinion