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

 

abraskin@mbusd.org 2016_student_creations_01 > gradeCalc
prev  |  next  |  chance

You are going to create a grade calculator which will tell you what grade to get on your final to get an A (90) in the class.
Given the parameters of the weight of the final (without the percent sign) and your grade in the class, return the grade you must get on your final. You do this by finding how many points are you above a 90, multiply that by (100/test weight) and subtract that number from your grade.


gradeCalc(25, 93) → 81
gradeCalc(20, 95) → 70
gradeCalc(10, 96) → 36

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

public int gradeCalc( int testWeight, int classGrade){ }

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

Copyright Nick Parlante 2017 - privacy