class gradeConverter { public static void main ( String args[] ) { … isValidNumber (score, 0, 100); … getLetterGrade (score); … } private static boolean isValidNumber ( int number, int minimum, int maximum ) { … } private static String getLetterGrade ( int score ) { … } } PART 2 class gradeConverterPublic { public static boolean isValidNumber ( int number, int minimum, int maximum ) { … } public static String getLetterGrade ( int score ) { … } } class gradeConverterDemo { public static void main ( String args[] ) { … gradeConverterPublic.isValidNumber (score, 0, 100); … gradeConverterPublic.getLetterGrade (score); … } }
please i need help writing this program and im completly stuck it i dont kno whow to right it at all. it has three parts each need done seperatly but the three classes need to be able to work together (the gradeConverter, the gradeConverterPublic, gradeConverterDemo). the classes have to be done the way my professor wants it done. the professor didnt really say much about getLaterGrade method, im guessing he wants us to it with a being a range between 90 and 100, b range between 80 and 89, c being between 70 and 79, d being bewteem 60 and 69, f being from 0 to 59. the gradeConverterDemo class just tests all the stuff that was coded in the program so it needs to be able to call those previous classes, run and test them with what was givin toi the program by user input
it needs to be done like this
class gradeConverter
{
public static void main ( String args[] )
{
… isValidNumber (score, 0, 100);
… getLetterGrade (score);
…
}
private static boolean isValidNumber ( int number, int minimum, int maximum )
{
…
}
private static String getLetterGrade ( int score )
{
…
}
}
PART 2
class gradeConverterPublic
{
public static boolean isValidNumber ( int number, int minimum, int maximum )
{
…
}
public static String getLetterGrade ( int score )
{
…
}
}
class gradeConverterDemo
{
public static void main ( String args[] )
{
… gradeConverterPublic.isValidNumber (score, 0, 100);
… gradeConverterPublic.getLetterGrade (score);
…
}
}

Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images









