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

 

frew@mclean.com review2020day3 > sumGeoInf
prev  |  next  |  chance

Find the sum of an infinite geometric series. The formula can be found here (look for the infinity). http://www.doe.virginia.gov/testing/test_administration/ancilliary_materials/mathematics/2016/2a-formsht-2016.pdf


sumGeoInf(96.0, 0.5) → 192.0
sumGeoInf(1.0, 0.2) → 1.25
sumGeoInf(10.0, 0.5) → 20.0

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

public double sumGeoInf(double a1, double r) { }

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: 150 Post-solution available

Copyright Nick Parlante 2017 - privacy