Java String Combinations

a. :

i. Print all the possible strings of size 5 that begin with 3 letters from S = {a, b, c} followed by 2 digits of set N = {1 , 2}. (Repetitions are allowed)

ii. Print the total number of strings that you made using S and N.

iii. Print what counting rule you used to calculate the answer in part ii?\

 

b. :

i. Print all the possible strings of size 5 that begin with 3 letters of S = {a, b, c} followed by 2 digits of set N = {1 , 2}. (Repetitions are NOT allowed)

ii. Print the total number of strings that you made using S and N.

iii. Print what counting rule you used to calculate the answer in part ii?

Need a custom answer at your budget?

This assignment has been answered 5 times in private sessions.

© 2024 Codify Tutor. All rights reserved