id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

jebbert@volusia.k12.fl.us > gradingLetters
prev  |  next  |  chance

Write a method that returns your letter grade based on the "GPA" scores on two quizzes and a test. The test score counts twice as much as a quiz. The average GPA is then found (rounding DOWN) and that GPA is converted to a letter grade. For example, gradingLetters(4, 4, 3) returns a 'B' because: 4+4+2*3=14 and 14/4=3.5. Rounding down gives us 3 which is a 'B'. Note that even a GPA of 3.9 would round down to a 3.


gradingLetters(4, 4, 3) → "B"
gradingLetters(3, 3, 1) → "C"
gradingLetters(2, 3, 4) → "B"

...Save, Compile, Run (ctrl-enter)

public char gradingLetters(int quiz1, int quiz2, int test1) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 250

Copyright Nick Parlante 2017 - privacy