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

 

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

Write a method that produces the output as shown. I'm sure you can figure it out!


dec15_2016_HL_simpleSeries(3, 0.5, 0.5) → "0.5x^0 + 0.25x^1 + 0.125x^2 + 0.0625x^3"
dec15_2016_HL_simpleSeries(1, 4, 0.5) → "4.0x^0 + 2.0x^1"
dec15_2016_HL_simpleSeries(0, 72, 0.25) → "72.0x^0"

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

public String dec15_2016_HL_simpleSeries(int highestPower, double firstCoefficient, double coefficientMultiplier) { }

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

Copyright Nick Parlante 2017 - privacy