Question: Please answer in C++ Language. Assignment : For this assignment youll be creating three different programs that deal with strings. You can make one multi-purpose

Please answer in C++ Language.

Assignment: For this assignment youll be creating three different programs that deal with strings. You can make one multi-purpose program, or three individual programs, but theyll need to perform the following tasks:

1.) Given a binary string, your program will have to add one to it, giving the next binary string in sequence. i.e. Given 101011, program returns 101100.

2.) Given an input string, print out all PERMUTATIONS of the string. i.e., cat would yield cat, cta, act, atc, tac, tca NOTE: In a string like madam, each a and m is considered unique, so there are several different permutations of that string which would output madam as well.

3.) Given a number between 1 and 6, print out every NON-REPEATING possible COMBINATION of the set {A,B,C,D,E,F}. i.e., Given 2, the program would return AB, AC, AD, AE, AF, BC, BD, BE, BF, CD, CE, CF, DE, DF, EF.

Use your program(s) to handle the following six pieces of input:

1.) 10111011

2.) 1111

3.) Trick

4.) Copycat

5.) 3

6.) 5

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!