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

 

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

Yoda is headmaster of the Jedi Academy. He needs a method that returns the GPA of the given letter grade. For example, an A is a 4, a B is a 3, etc. Any letter after D counts as 0. You may assume that only capitol letters will be passed into the input parameter.


yodaGradePoint("A") → 4
yodaGradePoint("B") → 3
yodaGradePoint("C") → 2

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

public int yodaGradePoint(char ltr) { }

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: 220

Copyright Nick Parlante 2017 - privacy