Test the following Java classes using JUnit providing 4 test cases that pass and 4 that fail, after fixing any errors: getGrade returns a character A if mark is 90-100, B if mark is 80-90, C if it's 70-80, D if it's 60-70, F if it's less than 60. showRange displays the range: "90-100" if grade is A, "80-90" if grade is B, "70-80" if it's C, "60-70" if it's D,

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter7: Characters, Strings, And The Stringbuilder
Section: Chapter Questions
Problem 1DE
icon
Related questions
Question
Test the following Java classes using JUnit providing 4 test cases that pass and 4 that fail, after fixing any errors: getGrade returns a character A if mark is 90-100, B if mark is 80-90, C if it's 70-80, D if it's 60-70, F if it's less than 60. showRange displays the range: "90-100" if grade is A, "80-90" if grade is B, "70-80" if it's C, "60-70" if it's D, "
Expert Solution
steps

Step by step

Solved in 2 steps with 4 images

Blurred answer
Knowledge Booster
Methods of StringBuilder class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT