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

 

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

For this problem, you are allowed to search the Internet for ideas and information related to this topic. Input parameters: 'freq1' and 'freq2' will be the frequencies in Hertz of two waves that are interfering with each other, such as sound waves traveling through the air. These will be given as doubles. Return the beat frequency of the resulting superimposed wave as a double.


test2021_04_29_HL_beatFrequency(2000, 2003) → 3.0
test2021_04_29_HL_beatFrequency(2003, 2000) → 3.0
test2021_04_29_HL_beatFrequency(2200, 2300) → 100.0

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

public double test2021_04_29_HL_beatFrequency(double freq1, double freq2) { }

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