In this exercise you will write some short programs to practice the use of the Math, Random and String classes.
Java String has no method to erase a single character. You will want to form the result by concatenating two substrings: The portion before the deletion, and the portion afterwards.
If your trig is little rusty, this is a straightforward triangle
problem. The height is just the product of the distance and
the tangent of the elevation angle. Happily, Java's Math
class provides a tangent function that will do the trick.
Unfortunately, it wants its argument in radians instead of
degrees, but, of course,
you just have to multiply the degrees by π over 180. So, this:
When you are finished, turn in your corrected StringOops.java and completed ProcessName.java from the first instruction set, and Dice.java, RandomLet.java and BuildingHeight.java from here.