Title: Assignment 12
Course: COP 1510 Programming Concepts > Section: Module 13 - Recursion

For your module 13 assignment, you will design and write a program following the specification that is given below. Design your program using a flowchart and pseudocode. Submit your final flowchart and pseudocode design in the dropbox.

Sum of Numbers

Design a recursive function that accepts an integer argument and returns the sum of all of the integers from 1 up to the number that was passed as an argument. For example, if 10 is passed as an argument, the function will return the sum of all values from 1 through 10. Demonstrate this function in a program that asks the user to enter a number and then displays the sum of the numbers.

Example Output:

Enter a number:
5 [Enter]
The sum of the numbers is 15