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

Introduction
Class Definition
Data Fields
Methods
Constructors
Instantiation
  
Demo 1
  Demo 2
Static Members
  Demo 3

Value&Reference
  Demo 4
Overloading
   Demo 5
Wrappers 
  Demo 6
Autobox/Unbox
   Demo 7
Arrays
  Demo 8
Exceptions
Exercises

    Supplements
MoreAboutObjects
Creating Types

Classes,Objs&JVM

Java OOP vs C++
Garbage Collection
     About JavaTech
     Codes List
     Exercises
     Feedback
     References
     Resources
     Tips
     Topic Index
     Course Guide
     What's New

 

  1. Modify the projectile demo program so that it tries a range of angles from 10 to 80 degrees and reports the angle that results in the longest shot. Use the Histogram class to record the distribution of shot distances and then print out the values from the histogram.

  2. Use either or both of the bisection and Newton methods to solve for the roots of two different functions of your choice.

  3. For a function of your choice, compare the Newton method using an analytical derivative to the discrete method. Show, for example, if the number of steps to find the roots differ significantly.

  4. Create a class for the bisection method and rewrite the projectile motion example to use it.

  5. Create a class for the Newton's methods and rewrite the projectile motion example to use it.

           Tech
OOP in Tech Apps
Complex Number
Histogram Class
  Demo
More Wrappers

           Physics
OOP in Physics
Particle Class
Root Finding
  Demo 1
Newton Methods
  Demo 2
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.