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

 

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

Write a method that generates an array that represents an arithmetic sequence. You will be given a starting place for the sequence and a common difference. You will also be given the number of elements to have in the sequence. Look at the test data for examples.


jan19_2018_APSLHL_makeSequence(3, 1, 5) → [3, 4, 5, 6, 7]
jan19_2018_APSLHL_makeSequence(90, 5, 3) → [90, 95, 100]
jan19_2018_APSLHL_makeSequence(140, 200, 5) → [140, 340, 540, 740, 940]

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

public int[] jan19_2018_APSLHL_makeSequence(int startingPlace, int difference, int howMany) { }

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