Top Posters
Since Sunday
r
4
L
4
3
d
3
M
3
l
3
V
3
s
3
d
3
a
3
g
3
j
3
New Topic  
anthonydel117 anthonydel117
wrote...
Posts: 449
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 ");
printGrade(78.5);
System.out.print("The grade is ");
printGrade(59.5);
}

public static ________ printGrade(double score) {
if (score >= 90.0) {
System.out.println('A');
}
else if (score >= 80.0) {
System.out.println('B');
}
else if (score >= 70.0) {
System.out.println('C');
}
else if (score >= 60.0) {
System.out.println('D');
}
else {
System.out.println('F');
}
}
}


▸ double

▸ char

▸ boolean

▸ void

▸ int
Textbook 
Introduction to Java Programming, Comprehensive Version

Introduction to Java Programming, Comprehensive Version


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

Related Topics

anthonydel117 Author
wrote...

4 years ago
This site is awesome
wrote...

Yesterday
This helped my grade so much Perfect
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
  1595 People Browsing
Related Images
  
 378
  
 3587
  
 677