Home : Map : Chapter 4 : Java : Tech : Physics :
Exercises
JavaTech
Course Map
Chapter 4

Introduction
Inheritance
  Demo 1
Overriding
  Demo 2a
  Demo 2b
this,super
MoreConstructors
  Demo 3
Abstraction
Interface 
  Demo 4
Casting References
MoreAboutArrays
Object class
Class Summary
Exercises

    Supplements
Override/Overload
Annotation-J2SE5.0
Java Security
Class Loading
Class Verifier
SecurityManager
     About JavaTech
     Codes List
     Exercises
     Feedback
     References
     Resources
     Tips
     Topic Index
     Course Guide
     What's New

 

  1. Create a class for the Euler method and a class for the Predictor-Corrector method and write a program that uses each to solve the projectile motion problem and compares the results.

  2. Add drag to the projectile motion examples in Demo 1 & Demo 2 with a velocity dependent term that goes as the square of the velocity:

        D = -k2 * v/|v|

    where k ~= .02. The component velocities become

        Dx = -kv2 cos = kv vx
        Dy = -kv2 sin = kv vy

    Find the landing point of the projectile and its final horizontal and vertical velocities using the 4th order Runge-Kutta method. (You can assume a flat terrain.)

  3. For the exercise 2 drag term, determine the terminal velocity of a dropped object using 4th order Runge-Kutta.

  4. Modify the projectile target shooting method in Demo 3 to apply drag as shown in exercise 2.

            Tech
MoreComplexClass
ImprovedHistogram
JavaRandomNums
Vectors & Matrices
Exercises

           Physics
Runge-Kutta 2nd
  Demo 1
Runge-Kutta 4th
  Demo 2
BoundaryVal.Prob
Shooting Method
  Demo 3
Exercises

  Part I Part II Part III
Java Core 1  2  3  4  5  6  7  8  9  10  11  12 13 14 15 16 17
18 19 20
21
22 23 24
Supplements

1  2  3  4  5  6  7  8  9  10  11  12

Tech 1  2  3  4  5  6  7  8  9  10  11  12
Physics 1  2  3  4  5  6  7  8  9  10  11  12

Java is a trademark of Sun Microsystems, Inc.