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



Create a method: public double findSize (double sideA, double diagonal) that will take in a side and diagonal of a triangle and find the third side, which is calculated by: Squaring both and subtracting sideA squared from diagonal squared, then square rooting. So 3,5 -> 25-9=16 square rooted is 4

findThirdSize(3, 5) → 4.0
findThirdSize(5, 13) → 12.0
findThirdSize(8, 10) → 6.0

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

public double findThirdSize(int sideA,int diagonal) }

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

Copyright Nick Parlante 2017 - privacy