Em Andamento

C++ Recursive Function Problem

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>

Habilidades: Programação C, Engenharia, MySQL, PHP, Arquitetura de software, Teste de Software

Ver mais: write a recursive function, what is recursive programming, what is recursively, what is recursive function, what is recursive, what is programming language, what is in c programming, what is functional programming, what is c# programming, what is c programming, what is an array in programming, what is a function in programming, strings in c programming, recursive programming, recursive problems, recursive problem, recursively, recurrence problem, programming function, int size c, integers form 1, function programming, function calling itself, c programming strings, c# programming problems

Acerca do Empregador:
( 6 comentários ) United States

ID do Projeto: #2961409

Premiar a:

vw821235vw

See private message.

$7 USD em 5 dias
(94 Avaliações)
4.3

8 freelancers estão ofertando em média $10 para este trabalho

timk98

See private message.

$10.2 USD in 5 dias
(54 Comentários)
4.7
sarderhasnut

See private message.

$12.75 USD in 5 dias
(54 Comentários)
4.8
preyasvw

See private message.

$12.75 USD in 5 dias
(34 Comentários)
4.4
vw884283vw

See private message.

$6.8 USD in 5 dias
(7 Comentários)
2.7
vasilevalaiba

See private message.

$12.75 USD in 5 dias
(9 Comentários)
2.5
imidebest

See private message.

$12.75 USD in 5 dias
(7 Comentários)
2.5
louisbouchard

See private message.

$8.5 USD in 5 dias
(0 Comentários)
0.0