Terminé

Design and test a recursive function palindrome

Design and test a recursive function palindrome() which returns true if the entered string is palindrome, and false otherwise

#include <iostream>

#include<iomanip>

using namespace std;

cons tint LINE=80;

void input_string( char a[], int &length );

void print_string( const char a[], int length );

void output( const char a[], int length );

bool palindrome( const char a[], int I, int j );

int main()

{

char a[LINE];

int length;

input_string( a, length );

print_string( a, length );

cout << “Enter string length= “ << length << endl;

output ( a, length );

}

void input_string( char a[], int &length )

{

cout << endl;

cout << “Enter a string: “;

cin >> a;

length = 0;

while ( a[length] != ‘\0’ )

++length;

}

void print_string( const char a[], int length )

{

cout << “Entered string: “;

length = 0;

while ( a[length] != ‘\0’ )

cout << stew(2) << a[length++];

cout << endl;

}

bool palindrome( const char a[], int I, int j )

{

PLEASE DESIGN

}

void output( const char a[], int length )

{

if( palindrome(a, 0, length-1 ) )

cout << “The string is a palindrome” << endl;

else

cout << “The string is not a palindrome” << endl;

cout << endl;

}

Compétences : Programmation C++

en voir plus : sample graphic design test, design test asp online, design goal seek function, php recursive function drop menu, php example recursive function drop menu, recursive function php dropdown menulist example, recursive function creating linked list, recursive function search linkd list, recursive function searches link list, graphic design test project, design test questions, graphic design test questions, graphic design test, recursive function linked list, recursive function search linked list

Concernant l'employeur :
( 2 commentaires ) shanhai, United States

Nº du projet : #15545304

Décerné à:

NovaSofts

Hi I have checked the description and much confident that we can do it perfectly for A grade. thank you Relevant Skills and Experience C++ ---- 15+ years Proposed Milestones $30 USD - m

%selectedBids___i_sum_sub_4% %project_currencyDetails_sign_sub_5% USD en 1 jour
(110 Commentaires)
6.4

9 freelance font une offre moyenne de $27 pour ce travail

iridescent2x15

I m software engineer. I have read the description and I would like to work for you. For further details please inbox me. Thank you Relevant Skills and Experience C++ Proposed Milestones $25 USD - m

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(35 Commentaires)
5.4
%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(18 Commentaires)
5.5
bPeou2017

Hello. I'm an good Algorithm & Data structure expert. I've a lot of experiences in this kind of problems. I'll give u the best code. We'll be able to be good friends in the future by this project. Relevant Skills and Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)
0.0
davidngo817

C++ expert Relevant Skills and Experience C++ Programming Proposed Milestones $50 USD - 1

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)
0.0
%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)
0.0
ravip121997

Dear sir, Though I am a new freelancer I have done some programming in C++ and have done this kind of project for my assignment in my course in computer engineering. Stay tuned, I'm still working on this proposal.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)
0.0
shajie

I am a Software Architect and Engineer having 14 years of experience in Software Engineering. Designed and written quality desktop apps, including real-time and quasi-realtime systems. Relevant Skills and Experience E Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 0 jours
(0 Commentaires)
0.0
amoldhanwat

hi i have experience in C/C++ , and can do the palindrome stuff for you ... Relevant Skills and Experience hi i have experience in C/C++ , and can do the palindrome stuff for you ... Proposed Milestones $23 USD - .

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)
0.0