Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question: Complete the functions findBinaryNotation isPalindrome recurSummation arrRev. DO NOT change main or the function definitions, only the functions to write. . (Global Scope) ellaneous

Question: Complete the functions findBinaryNotation isPalindrome recurSummation arrRev. DO NOT change main or the function definitions, only the functions to write.

image text in transcribedimage text in transcribedimage text in transcribed

. (Global Scope) ellaneous Files #include #include [ #include using namespace std; + WNE string findBinaryNotation(int num); bool ispalindrome (string palin); int recurSummation(int bound); void arrRev(char (&arr) [26], int low, int high); string pad(string topad); Qint main() //variable declarations for the isPalindrome string palone = "ppwtrrdooffffsmppnnvveeleewaszzpttmmrnhhnnmxbbvttauummkkbbvvjccjvvbbkkmmuuattvbbxmnnhhormmttpzzsaweeleevvnnppmsffffoodrrtwpp"; string palTwo = "ffpmzaboodppvvvvwprryxzlluueffgghhdhehhdhgfjffeuullzxxyyymrpwwvwvpddoogbazznemsppf"; string palThr = "tkkbbsbbgzaafwwhenttddccnnccbbelyyjjffkkjwewwjjkfjyleebcnnccdtnnehewwfgazgbsbkkktt"; string palfou = "vjjuusvxxmfhwlluujjcjjffssggyxxaazppllysslxxoyttillkaajxqqhhphhqqxjaaklllttyoxxlssyllppzaaxxyggssffjjcjjuullwhfmxxvsquujjv"; string palFiv = "nkkgggnnghhdppccebbrrccceevvjjxxjdffyykkfejjgggkvyycssuubrqiistsiiqrbuusscyyvkgggjjefkkyyffdjxxjjvveecccrrbbeccppdhhgnngggkkn"; string palsix = "ffkkrmrzzqggdkkddzkeemmttutthsscmqqfcggggqqccccqiggggccfqjmcsshttutmmekzdkkddggqzzbvtrrmmrkff"; //array for the reverse char alph[] = {'a', 'b', 'c','d', 'e','f','g','h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r','s', 't', 'u', 'y', 'w', 'x', 'y', 'z'}; //checking your findBinaryNotation (pad(findBinaryNotation (1))=="00000001") ? (cout=8) return toPad; i else topad.insert(toPad.begin(,8-topad.length(), '0'); return toPad; . (Global Scope) ellaneous Files #include #include [ #include using namespace std; + WNE string findBinaryNotation(int num); bool ispalindrome (string palin); int recurSummation(int bound); void arrRev(char (&arr) [26], int low, int high); string pad(string topad); Qint main() //variable declarations for the isPalindrome string palone = "ppwtrrdooffffsmppnnvveeleewaszzpttmmrnhhnnmxbbvttauummkkbbvvjccjvvbbkkmmuuattvbbxmnnhhormmttpzzsaweeleevvnnppmsffffoodrrtwpp"; string palTwo = "ffpmzaboodppvvvvwprryxzlluueffgghhdhehhdhgfjffeuullzxxyyymrpwwvwvpddoogbazznemsppf"; string palThr = "tkkbbsbbgzaafwwhenttddccnnccbbelyyjjffkkjwewwjjkfjyleebcnnccdtnnehewwfgazgbsbkkktt"; string palfou = "vjjuusvxxmfhwlluujjcjjffssggyxxaazppllysslxxoyttillkaajxqqhhphhqqxjaaklllttyoxxlssyllppzaaxxyggssffjjcjjuullwhfmxxvsquujjv"; string palFiv = "nkkgggnnghhdppccebbrrccceevvjjxxjdffyykkfejjgggkvyycssuubrqiistsiiqrbuusscyyvkgggjjefkkyyffdjxxjjvveecccrrbbeccppdhhgnngggkkn"; string palsix = "ffkkrmrzzqggdkkddzkeemmttutthsscmqqfcggggqqccccqiggggccfqjmcsshttutmmekzdkkddggqzzbvtrrmmrkff"; //array for the reverse char alph[] = {'a', 'b', 'c','d', 'e','f','g','h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r','s', 't', 'u', 'y', 'w', 'x', 'y', 'z'}; //checking your findBinaryNotation (pad(findBinaryNotation (1))=="00000001") ? (cout=8) return toPad; i else topad.insert(toPad.begin(,8-topad.length(), '0'); return toPad

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Learning PostgreSQL

Authors: Salahaldin Juba, Achim Vannahme, Andrey Volkov

1st Edition

178398919X, 9781783989195

More Books

Students also viewed these Databases questions