Write a class VariablePractice that performs conversions from acre to
square feet, to square meters, and then to square yards through a
series of assignments. The program should take the following actions:
Assign a value, e.g., 1.0 to acre. This is the starting quantity.
Assign the value of the formula acre * 43560
to sqft.
This is the square feet value of the given acreage.
Similarly, compute the square meter value of the given acreage
by using a formula that multiplies the value of sqft by
0.3048 twice and storing the value to sqm.
(This uses the fact that one foot in length is equal to 0.3048 meters.)
Similarly, compute the square yard value of the given acreage
by using a formula that divides the value of sqm by
0.9144 twice and storing the value to sqyd.
(This uses the fact that one yard in length is equal to 0.9144 meters.)
Then print the result in the following manner (the output example is
based upon the value of 1.0 assigned to acre)
Note that each line can be produced by two statements:
one System.out.print statement that prints the value of a variable
and one System.out.println that prints the non-value part.
For example, the first line can be generated using the following two
statements:
System.out.print( acre );
System.out.println( " acre is:" );
(Adapted from Textbook Chapter 2 Exercise 3)
The Fibonacci numbers are the sequence of numbers, where the first two are
both 1 and after that each number is the sum of the two numbers
precedining immediatey to it. That is, the sequence is:
1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, ...
Write a class Fibonacci that prints the first five numbers,
one number per line, as follows: