Study Display 5.2. Using static variables and static methods to implement the class Fibonacci such that the first call to Fibonacci.next() returns 2, the second returns 3, and then 5, and so on.
Design a method that can compute the vector inner product. You must define Vector class in the first place. Write a demo program to verify your program works. You should use constructors to initialize the two vectors.
Hint: The inner product is not a vector. It is a number
Write a program to implement a method that can check whether 2 fractions are equal. You will implement a class called Fraction consisting of a numerator and a denominator. The equality test of 2 fractions should return a boolean value.
Write a program to implement a method that can do additions of 2 fractions. You will implement a class called Fraction consisting of a numerator and a denominator. The additions of 2 fractions should be equal to a fraction. Use 1/2+1/3 as the test.