Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems An Application Oriented Approach Complete Version

Authors: Michael Kifer, Arthur Bernstein, Richard Lewis

2nd Edition

0321268458, 978-0321268457

More Books

Students also viewed these Databases questions

Question

Provide examples of KPIs in Human Capital Management.

Answered: 1 week ago

Question

What are OLAP Cubes?

Answered: 1 week ago