CMIS 242 Project 3 Recursion Exercises

$ 15

CMIS 242 Project 3 Recursion Exercises

Write a Java application that uses recursion to compute the results of the following series:
1. ((((x * 2) * 2) * …) * 2)
for a series of n multiplications
2. x + (x * 1) + (x * 2) + (x * 3) + … + (x * n)
3. 1 + 1/2 + 1/3 + … + 1/n
In the above, x and n are values provided by the user. (For #3, there is no x.)
Ensure that your code compiles and runs without errors. Additionally, be sure to comment your code appropriately.

96 in stock

SKU: CMIS242PROJECT3N Category:

Description

CMIS 242 Project 3 Recursion Exercises

Write a Java application that uses recursion to compute the results of the following series:
1. ((((x * 2) * 2) * …) * 2)
for a series of n multiplications
2. x + (x * 1) + (x * 2) + (x * 3) + … + (x * n)
3. 1 + 1/2 + 1/3 + … + 1/n
In the above, x and n are values provided by the user. (For #3, there is no x.)
Ensure that your code compiles and runs without errors. Additionally, be sure to comment your code appropriately.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.