Homework: Developing algorithms for each of the following questions, find the inputs and outputs, write the algorithm, and test the algorithm.