Find Jobs
Hire Freelancers

C++ Recursive Function Problem

$10-15 USD

Completed
Posted almost 21 years ago

$10-15 USD

Paid on delivery
A few issues/problems: 1. What (if anything) is wrong with this recursive function? Void DoIt(int N) { if ( N > 0) { cout << N << " "; DoIt(N + 1); } } 2. Consider the language in the alphabet {a, b} defined by the grammar: <s>= a</s>a | b<s>b | a | b a. List all the 5-character strings that are in this language b. Write a recursive function that, when passed a character array S and integers First and Last, determines whether S [First...Last] is in this language. 3. Write a recursive function recursiveMinimum that takes an integer array and the array size as arguments and returns the smallest element of the array. The function should stop calling itself recursively when it receives an array of one element. 4. Consider the function S defined by the following recurrence relation. S(1) = 5; S(N) = S(N-1) + 5 for N > 1 What is the value of S(10)?</s> ## <s>Deliverables</s> <s>1) Complete and fully-functional working program(s) in executable form (if applicable) as well as complete source code of all work done. 2) Complete ownership and distribution copyrights to all work purchased.</s> ## <s>Platform</s> <s>Windows</s>
Project ID: 2961409

About the project

8 proposals
Remote project
Active 21 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$7 USD in 5 days
4.9 (94 reviews)
4.3
4.3
8 freelancers are bidding on average $10 USD for this job
User Avatar
See private message.
$10.20 USD in 5 days
4.9 (54 reviews)
4.7
4.7
User Avatar
See private message.
$12.75 USD in 5 days
4.1 (54 reviews)
4.8
4.8
User Avatar
See private message.
$12.75 USD in 5 days
4.8 (34 reviews)
4.4
4.4
User Avatar
See private message.
$6.80 USD in 5 days
5.0 (7 reviews)
2.7
2.7
User Avatar
See private message.
$12.75 USD in 5 days
5.0 (9 reviews)
2.5
2.5
User Avatar
See private message.
$12.75 USD in 5 days
5.0 (7 reviews)
2.5
2.5
User Avatar
See private message.
$8.50 USD in 5 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
United States
5.0
6
Member since Aug 7, 2003

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.