[SOLVED] SOLVED: Application of recursive function

10.00 $

Programming resource
Digital learning resource
Category:
✓ Practical programming resource
✓ Suitable for guided study and reference
✓ Tutor guidance available when needed

Description

5/5 - (2 votes)

The assignment is an application of recursive function. With a number pattern that begins with 1, 5, 14, and 30. Write a C++ program that figures out and display the first twenty numbers of the pattern, and then with a user’s choice entered, at the run time, for an ordered number in the pattern, the program displays that element.
The program then loops back continuously to accept another user’s choice for any other elements in the pattern to be revealed. Input value was validated to make sure that program won’t be crashed at the run time by any reason.

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.