CSERD


  • userhome
  • catalog
  • resources
  • help

Java Applet Programming


Shodor > CSERD > Resources > Tutorials > Java Applet Programming

  


Programming in Java - Final Challenge

This is it, time to test what you have learned and see if you can put it all together.

Traveling Waves

The standard equation of a wave in motion is

    y(x,t) = A sin (K x + O t + P)

where A is the wave amplitude, K is the wave number (2*pi/wavelength), O is the angular frequency omega (2*pi*frequency), and P is the phase in radians.

Write an applet that shows a picture of a traveling wave over time, letting the user adjust the wavelength and the frequency.


©1994-2025 Shodor