Practice of algorithms

1. Write the algorithm and Chapin chart of the solution of the equation A*x2+Bx+C=0. Try to check every possibilities of A, B and C.

2. Write Chapin chart to find the minimum of two input variables Z and Y.

3. Write Chapin chart to find the minimum of three input variables X, Y and Z. Use the solution of problem 2 as a module.

4. Find the intersection points of a line and a parabola. (M*x+B = A1*x2+A2*x+A3) Use the solution of problem 1 as a module.

5. Write the algorithm and Chapin chart to calculate the N-th Fibonacci number F(n). F(1)=1; F(2)=1 F(i)=F(i-1)+F(i-2) where i=3->N. Calculate the ratio of the last two element F(i)/F(i-1). Show two solution: with array and without array.

6. A set of number is given. (The number of element is N.)

7*. Write Chapin chart to find the perfect numbers between 1 and 1000. (A number is perfect if the sum of dividers is equal to the number itself. Example: 6=1+2+3)