Question: A regular palindrome is a string ef numbers or letters that is the same forward as backward. For example, the string ABCDEDCBA is a palindrome

 A regular palindrome is a string ef numbers or letters that

A regular palindrome is a string ef numbers or letters that is the same forward as backward. For example, the string ABCDEDCBA is a palindrome because t a the same when the stringis read from left to right as when the string is read ram rght to lef A reirrered string is a string for which when each of the elements of the string is changed to its si has a revene) and the ring is read backwards the rezulta the tama as the anginaltnnE-taraample, the tring .2AAL" i: a minrored tring because"and'are their own reverzes, and'3' and "E are eoch ochers reverses A mlirrored palindrome is a string that meets the oriteria of a regul ar palindhome and the criteria of a mirrored string The string"ATOMOTA is a mieed palindrame because i the stying is read bacewards, the string is che same as the arginal and be cautrf each of the characters i: neplaced by its rovno. and th. result is read backward, tho resuts the same as the eiginal string. Of course,A.T."andore al their own reverses Sample Output ISAPALINILAPASI is a regular palindrome. A3MEAS- s a mirrored string ATOYOTA is a mirrored palindrome. SUBMISSION STEPS Your program must compile without any errors or warnings. Test your program with different values MAKE SURE YOU USE AN OBJECT ORIENTED SOLUTION (that is NOT a procedural solution onlyj. Have at least one class an d make use of the Java APl classes as much as possible. Characer Rovarse Charactar Reverse Character Revarse Make sure you write your FULL NAME, Student ID and DATE as comments at the beginning of your code. To submit, create a script file as described below and submit it along with your java source files. Do not submit the dass f les. Steps to generate a script file: (from the shell prompt, and from the current directory where your files are located). Create a script file as follows: 1.script assignt.xt 2. cat palindromejava 3, cat palindromeTester java 5, javac palindrometester java 6. java palindromTester (test your application fully, compile any additional dasses you may have) 7. Is 8. exit Note thet tzerel andOBhe lotter are considered thesame character and therefore ONLY the letter"D" is a vai Subm the file assign.bt and all the java files onto the blackboard submission NOTE: Submissions that are not received correctly by the deadine will automatically receve a ZERO mark. Late Assignments are not accepted. Late penalty waiver coupon must be recelved by your instructor immediately (read th Input e instructions provided with the coupon) nput conssts of strines(one per linel each of which will consst of one to twerty vald characters. There will be no inveld charactars in any of the strings Your program should nead a sering process its cutpout, then read another and keep doing so untl there are no more serings to read rem the input stream NOTES: 1. Your assignment must be RECEIVED by the due date and time. Late ass gnment submissions are NOT accepted. Keepy our script fle, and all your code unmodified as proof of its completion in case it is not received. 2. It is your responsibilty to get an early start on the assignment, research and ask questions ahead of time from the due date. 3 Undocumented or improperty documented code will NOT be graded and will receive a mark of ZERO. Use Javadoc nota on where poss ble. 4. Marks will be deducted for unclear code. (improper spacing and alignment, hard to read programs and missing outputs Output For each inpuit stringyou should print the string tarting in colun 1 immedacely olloned by esacrly one of the following is not a paindrome." therting is nat a paindrome and is not mirrored tring 5. Make sure you turn in a complete script file that clearly shows: your code, your compilation process,& listing of the dire ctory showing your source filets) and the a.out with the datetime stamps and the output 6. PLAGIARISM: CHEATING IS NOT TOLERATED. You must submit your own work. Students who are suspected of copyings omeone else's work will be reported to the department's chair and the Dean of Science and be dealt with in accordance w th the University poicies. You should not share your code with others, Codes that are similar to each other will BOTH ber eported as evidence of copying. You are strongly encouraged to write your own code 8. Authorized/limited help on this assignment may be provided directly from your Lecture or Lab instructors and Teaching -is a regular paindrone the string is a paindrome end bnot a minnored sring is a mirrored string"the sting is not a paindrone and is a miored saring is a mirnored paindrone-f the string is a paindrome and is a imered strirg Note thatthe output line is toinclude the -s and spodng eactly as shown in the table abova and demonstraned in the ample Output blow Inadoion, after each output lie you must prin aneptyline. Sample Input TIPS ON DOCUMENTATION: Fully document your code using javadoc notation whenever possble Generat Do not clutter your program with documentationl Keep it brief and properly aligned so as not to compromise the code's flow and clarity. Main control structures (such as loops and conditions) deserve a brief line or so to summarize wh at is the logical idea in the code segment to follow A regular palindrome is a string ef numbers or letters that is the same forward as backward. For example, the string ABCDEDCBA is a palindrome because t a the same when the stringis read from left to right as when the string is read ram rght to lef A reirrered string is a string for which when each of the elements of the string is changed to its si has a revene) and the ring is read backwards the rezulta the tama as the anginaltnnE-taraample, the tring .2AAL" i: a minrored tring because"and'are their own reverzes, and'3' and "E are eoch ochers reverses A mlirrored palindrome is a string that meets the oriteria of a regul ar palindhome and the criteria of a mirrored string The string"ATOMOTA is a mieed palindrame because i the stying is read bacewards, the string is che same as the arginal and be cautrf each of the characters i: neplaced by its rovno. and th. result is read backward, tho resuts the same as the eiginal string. Of course,A.T."andore al their own reverses Sample Output ISAPALINILAPASI is a regular palindrome. A3MEAS- s a mirrored string ATOYOTA is a mirrored palindrome. SUBMISSION STEPS Your program must compile without any errors or warnings. Test your program with different values MAKE SURE YOU USE AN OBJECT ORIENTED SOLUTION (that is NOT a procedural solution onlyj. Have at least one class an d make use of the Java APl classes as much as possible. Characer Rovarse Charactar Reverse Character Revarse Make sure you write your FULL NAME, Student ID and DATE as comments at the beginning of your code. To submit, create a script file as described below and submit it along with your java source files. Do not submit the dass f les. Steps to generate a script file: (from the shell prompt, and from the current directory where your files are located). Create a script file as follows: 1.script assignt.xt 2. cat palindromejava 3, cat palindromeTester java 5, javac palindrometester java 6. java palindromTester (test your application fully, compile any additional dasses you may have) 7. Is 8. exit Note thet tzerel andOBhe lotter are considered thesame character and therefore ONLY the letter"D" is a vai Subm the file assign.bt and all the java files onto the blackboard submission NOTE: Submissions that are not received correctly by the deadine will automatically receve a ZERO mark. Late Assignments are not accepted. Late penalty waiver coupon must be recelved by your instructor immediately (read th Input e instructions provided with the coupon) nput conssts of strines(one per linel each of which will consst of one to twerty vald characters. There will be no inveld charactars in any of the strings Your program should nead a sering process its cutpout, then read another and keep doing so untl there are no more serings to read rem the input stream NOTES: 1. Your assignment must be RECEIVED by the due date and time. Late ass gnment submissions are NOT accepted. Keepy our script fle, and all your code unmodified as proof of its completion in case it is not received. 2. It is your responsibilty to get an early start on the assignment, research and ask questions ahead of time from the due date. 3 Undocumented or improperty documented code will NOT be graded and will receive a mark of ZERO. Use Javadoc nota on where poss ble. 4. Marks will be deducted for unclear code. (improper spacing and alignment, hard to read programs and missing outputs Output For each inpuit stringyou should print the string tarting in colun 1 immedacely olloned by esacrly one of the following is not a paindrome." therting is nat a paindrome and is not mirrored tring 5. Make sure you turn in a complete script file that clearly shows: your code, your compilation process,& listing of the dire ctory showing your source filets) and the a.out with the datetime stamps and the output 6. PLAGIARISM: CHEATING IS NOT TOLERATED. You must submit your own work. Students who are suspected of copyings omeone else's work will be reported to the department's chair and the Dean of Science and be dealt with in accordance w th the University poicies. You should not share your code with others, Codes that are similar to each other will BOTH ber eported as evidence of copying. You are strongly encouraged to write your own code 8. Authorized/limited help on this assignment may be provided directly from your Lecture or Lab instructors and Teaching -is a regular paindrone the string is a paindrome end bnot a minnored sring is a mirrored string"the sting is not a paindrone and is a miored saring is a mirnored paindrone-f the string is a paindrome and is a imered strirg Note thatthe output line is toinclude the -s and spodng eactly as shown in the table abova and demonstraned in the ample Output blow Inadoion, after each output lie you must prin aneptyline. Sample Input TIPS ON DOCUMENTATION: Fully document your code using javadoc notation whenever possble Generat Do not clutter your program with documentationl Keep it brief and properly aligned so as not to compromise the code's flow and clarity. Main control structures (such as loops and conditions) deserve a brief line or so to summarize wh at is the logical idea in the code segment to follow

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!