Question: Create a program that utilises a recursive function to calculate the sum of integer values between two given integers inclusive, i.e. 5 , and 7

 Create a program that utilises a recursive function to calculate the

Create a program that utilises a recursive function to calculate the sum of integer values between two given integers inclusive, i.e. 5 , and 7 as inputs should return 18(5+6+7). The program should ask the user for the low and high numbers to act as the initial and last values in this calculation, then find and return the sum. Your program will need to provide feedback if this is not possible due to; the input values not being integers, or the 'low' value being higher than the 'high' value. Demonstrate this program works with: 1. The calculation of the sum of values between the first number of your student number and the last two digits of your student number when read as one number. (i.e. with a student number of 543820 , the values will be ' 5 ' and ' 20 '.) 2. The calculation of a low value of "- 12 and a high value of your height in feet (rounding up). 3. Suitable feedback for invalid input

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!