Akisha L.

asked • 01/21/21

Programming Logic and Design

1. The following module uses a loop. Rewrite it as a recursive module that performs the same operation.

Module trafficSign(int n)

While n > 0

Display "No Parking"

Set n = n - 1

End While

End Module



2. Recursive Array Sum

Design a function that accepts an Integer array and the size of the array as arguments. The function should recursively calculate the sum of all the numbers in the array and return that value.



Patrick B.

source code is uploaded to the RESOURCES section if you want it
Report

01/21/21

1 Expert Answer

By:

Patrick B. answered • 01/21/21

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.