Question
complete the code * * All method bodies are default method bodies. Please figure out how * to implement each method. */ public class CurveGrades
complete the code * * All method bodies are default method bodies. Please figure out how * to implement each method. */
public class CurveGrades { public static void main(String[] args) { // TODO: implenment the method body. } //end of main
/* * Method nitArrayFromUserInputs: * The method will prompt user to enter the number of scores to process. * get the scores from the user, store them in an array, * and, finally, return the array. */ public static double[] getScoresInArray() { // TODO: implenment the method body. return null; } //end of getScoresInArray
/* * Method getBestScore: * Given a double array, return the highest value in the array. */ public static double getBestScore(double[] scores) { // TODO: implenment the method body. return 0.0; } //end of getBestScore /* TODO: * Method getGrade: * Given a score and the best score, return the curved grade * according to the following. * If aScore >= bestScore - 10, grade is A. * Otherise, if aScore >= bestScore - 20, grade is B. * Otherise, if aScore >= bestScore - 30, grade is C. * Otherise, if aScore >= bestScore - 40, grade is D. * Otherise, grade is F. */ public static char getGrade(double aScore, double bestScore) { // TODO: implenment the method body. return 0; } //end of getGrade }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started