Question: Chapter 9 Objects and Classes t:Encapsulation, Strings, and Things palindromes. Write a program that accepts a string and determines whether or not the string is

 Chapter 9 Objects and Classes t:Encapsulation, Strings, and Things palindromes. Write

Chapter 9 Objects and Classes t:Encapsulation, Strings, and Things palindromes. Write a program that accepts a string and determines whether or not the string is a palindrome. Ignore all whitespace and punctuation, and assume that there is no distinction between upper and lowercase letters. For example, "a man, a plan, a canal, Panama", and "a Toyota's a Toyota" are palindromes, but "Babel" is not Write a program that accepts a string and displays another string composed of the characters of the first string but with all lowercase leters capitalized. Any non- alphabetical characters, such as punctuation, should be left unchanged. For example, the string-when Homer blew up the nuclear plant, he yelled "& DOH ##!!!" " should become .wHEN HOMER BLEw UP THE NUCLEAR PLANT, HE YELLED-#!#!#'& DOH !!!!" " 3. Random Strings Write a program that prints 25 random strings of length 4 such that each String is composed of uppercase alphabetical characters. 4. Substitution Encryption Write a program that prints the following chart that might help children encode secret messages using a single letter shift. Start with the string "abedefghijklmnopgrtuwwx and use a loop; do not code 26 different strings directly into your program ach line the file abcdefghijkimnopqrstuvwxyz bedefghijkimnopgrstuvwxyza cdefghijk1mnopgrstuvwxyzab defghijkimnopgrstuvwxyzabc efghijkimnopgratuvwxyzabod tghijkimnopgrstuvwxyzabcde ghijklnnopgrstuvwxyzabedef hijklmnopgrstuvwxyzabedetg ijkImnopgrstuvwxyzabedefgh the first ters klmnopgrstuvwxyzabcdefghij lmnopgrstuvwxyzabcdefghijk mnopgrstuvwxyzabcdefghijkl nopgrstuvwxyzabcdefghijk1m opgrstuvwxyzabcdefghijklmn pgrstuvwxyzabcdefghijkimno rstuvwxyzabodefghijkimnopq stuvwxyzabcdefghijklmnopgr tuvwxyzabcdefghijklmnopgrs uvwxyzabcdefghijklmnopgrst vwxyzabcdefghijklmnopgrstu wxyzabcdefghijklmnopgrstuv xyzabcdefghijklmnopqrstuvw yzabcdefghijklmnopgrstuvwx zabcdefghijklmnopgrstuvwxy first 5. More Encyption Write a program that accepts a codeword and displays the substitution lists for that codeword. For example, given the codeword "sauerkraut, the program should display: abcdefghijklmnopqrstuvwxyz

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!