1. (5pt) Write a Java program Tribonacci.java
that reads an integer n
from console input and outputs the nth Tribonacci
number t(n).
The nth
Tribonacci number is defined by the following equations:
2.(10pt) Implement a recursive method that sorts a given array into ascending order. Write a Java program to test your method.
3.(5pt) [Lab Manual (Chapter 3)] p5. Matching. For this exercise, turn in a text file lab2.txt where the answers are in the following format:
4. (5pt) [Lab Manual (Chapter 8)] p35. Complex Numbers.
5. [Lab Manual (Chapter 8)] p47. Programming Challenge 1. Rectangle Class.