Hw 11: Recursion |
Hw 11: Recursion
|
Due Date: Thursday, Nov. 30, 2017, 23:55See the General Guidelines for homework assignments. This assignment must be done individually. For each question below, design a recursive algorithm that satisfies the stated requirements. Express your answer using the pseudocode notation covered in the course notes on Algorithms. Use descriptive names for your variables, and include comments as necessary. Note: if you do not use the pseudo-code notation from the course notes, we will not grade your submission. 1. [50 points] Design a recursive algorithm that will display the sum of the digits of an integer. Examples:
Examples:
|
Computer Science 2104 Introduction to Problem Solvingt> |
D. Barnette
|