1. Write a program that implements Algorithm 1 on page 384 and use it to solve Exercise 4, page 386.
2. Write a program that implements Algorithm 2 on page 385 and use it to solve Exercise 6, page 386.
Please submit your answers on notebook paper, one side only, in the correct order. NEATNESS COUNTS!