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

 

simona1@sfusd.edu arrays2 > sevenCosines
prev  |  next  |  chance

Return an array of 7 doubles with the cosines of 0 - 6 in order. Use Math.cos() to find the cosine.


sevenCosines() → [1.0, 0.5403023058681398, -0.4161468365471424, -0.9899924966004454, -0.6536436208636119, 0.28366218546322625, 0.9601702866503661]

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

public double[] sevenCosines(){ }

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

Post-solution available

Copyright Nick Parlante 2017 - privacy